OpenForm() public method

Opens a new form.
public OpenForm ( ) : void
return void
コード例 #1
0
        private void NewWindowMI_Click(object sender, EventArgs e)
        {
            try {
                ClientForm form = this.FindForm() as ClientForm;

                if (form != null)
                {
                    form.OpenForm();
                }
            } catch (Exception exception) {
                GuiUtils.HandleException(this.Text, MethodBase.GetCurrentMethod(), exception);
            }
        }
コード例 #2
0
 /// <summary>
 /// Opens a new form.
 /// </summary>
 public void OpenForm()
 {
     if (m_masterForm == null)
     {
         ClientForm form = new ClientForm(m_context, m_application, this, m_configuration);
         m_forms.Add(form);
         form.FormClosing += new FormClosingEventHandler(Window_FormClosing);
         form.Show();
     }
     else
     {
         m_masterForm.OpenForm();
     }
 }