private void CloseForm(object args, EventArgs e) { PanelForm form = (PanelForm)args; form.ForceClose(); form.Dispose(); }
private PanelForm CreateForm() { if (_form == null) { _form = new PanelForm(this); } return(_form); }
public void CloseForm(PanelForm form) { Invoke(new EventHandler(CloseForm), form, EventArgs.Empty); }
private void HideForm(object args, EventArgs e) { PanelForm form = (PanelForm)args; form.Hide(); }
private void ShowForm(object args, EventArgs e) { PanelForm form = (PanelForm)args; form.Show(this); }
public void ShowForm(PanelForm form) { Invoke(new EventHandler(ShowForm), form, EventArgs.Empty); }