Example #1
0
        private void CloseForm(object args, EventArgs e)
        {
            PanelForm form = (PanelForm)args;

            form.ForceClose();
            form.Dispose();
        }
Example #2
0
 private PanelForm CreateForm()
 {
     if (_form == null)
     {
         _form = new PanelForm(this);
     }
     return(_form);
 }
Example #3
0
 public void CloseForm(PanelForm form)
 {
     Invoke(new EventHandler(CloseForm), form, EventArgs.Empty);
 }
Example #4
0
        private void HideForm(object args, EventArgs e)
        {
            PanelForm form = (PanelForm)args;

            form.Hide();
        }
Example #5
0
        private void ShowForm(object args, EventArgs e)
        {
            PanelForm form = (PanelForm)args;

            form.Show(this);
        }
Example #6
0
 public void ShowForm(PanelForm form)
 {
     Invoke(new EventHandler(ShowForm), form, EventArgs.Empty);
 }