コード例 #1
0
        public static bool TryShowDialog(MultiButtonMessageBox form, out DialogResult result)
        {
            result = DialogResult.OK;
            if (ShowGui)
            {
                // Can't be invoked async.
                //mMenuStrip.Invoke((MethodInvoker)delegate
                //{
                result = form.ShowMessageBox();
                //});
                return(true);
            }

            return(false);
        }