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();
}
}
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); } }