cadencii.FormAskKeySoundGenerationUiImpl.showDialog C# (CSharp) Method

showDialog() public method

public showDialog ( Object parent_form ) : int
parent_form Object
return int
        public int showDialog( Object parent_form )
        {
            DialogResult ret;
            if ( parent_form == null || (parent_form != null && !(parent_form is Form)) )
            {
                ret = base.ShowDialog();
            }
            else
            {
                Form form = (Form)parent_form;
                ret = base.ShowDialog( form );
            }
            if ( ret == DialogResult.OK || ret == DialogResult.Yes )
            {
                return 1;
            }
            else
            {
                return 0;
            }
        }