Inheritance: System.Windows.Forms.Form
コード例 #1
0
 private void OnRegistrationMenuItem_Click(object sender, EventArgs e)
 {
     using (var dlg = new RegistrationDialog(true))
     {
         dlg.ShowDialog();
     }
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: BloomBooks/BloomDesktop
 private static void CheckRegistration()
 {
     if (RegistrationDialog.ShouldWeShowRegistrationDialog() && !_supressRegistrationDialog)
     {
         using (var dlg = new RegistrationDialog(false))
         {
             if (_projectContext != null && _projectContext.ProjectWindow != null)
                 dlg.ShowDialog(_projectContext.ProjectWindow);
             else
             {
                 dlg.ShowDialog();
             }
         }
     }
 }