private void CloseWarningDialog() { if (dlg != null) { Console.WriteLine("Close window"); dlg.HasDongle(); dlg.Close(); dlg = null; } }
private void ShowNoDongleWarning() { if (dlg != null) { return; } // Instantiate the dialog box dlg = new DongleDialog(); // Configure the dialog box dlg.Owner = this; // Open the dialog box modally dlg.Show(); }