BDHeroGUI.DIalogs.ExceptionDialog.IsFormValid(System.Windows.Forms.IWin32Window)

Here are the examples of the csharp api class BDHeroGUI.DIalogs.ExceptionDialog.IsFormValid(System.Windows.Forms.IWin32Window) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: bdhero
Source File: ExceptionDialog.cs
private static void ShowResultMessage(IWin32Window owner, string title, string message, MessageBoxIcon icon)
        {
            if (IsFormValid(owner))
            {
                MessageBox.Show(owner,
                                message,
                                title,
                                MessageBoxButtons.OK,
                                icon);
            }
            else
            {
                MessageBox.Show(message,
                                title,
                                MessageBoxButtons.OK,
                                icon);
            }
        }

2. Example

Project: bdhero
Source File: ExceptionDialog.cs
private static void ReportExceptionSucceed(IWin32Window owner)
        {
            var dialog = new TaskDialog
                         {
                             Cancelable = true,
                             StartupLocation = TaskDialogStartupLocation.CenterOwner,

                             Icon = TaskDialogStandardIcon.Information,
                             Caption = "Cool!",
                             InstructionText = "Thanks for submitting an error report!",

                            FooterCheckBoxChecked = false,
                            FooterCheckBoxText = "&Don't show this message again"
                         };

            if (IsFormValid(owner))
                dialog.OwnerWindowHandle = owner.Handle;

            dialog.Show();

            if (dialog.FooterCheckBoxChecked.GetValueOrDefault())
                MessageBox.Show(owner, "OK, we won't show this again");
            else
                MessageBox.Show(owner, "Prepare to see more of me, bitch!");
        }