private void ShowProxyForm()
 {
     if (proxyForm != null)
     {
         proxyForm.Activate();
     }
     else
     {
         proxyForm = new ProxyForm(controller);
         proxyForm.Show();
         proxyForm.FormClosed += proxyForm_FormClosed;
     }
 }
Exemple #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (proxyForm != null)
     {
         proxyForm.Activate();
     }
     else
     {
         proxyForm = new ProxyForm(controller);
         proxyForm.Show();
         proxyForm.Activate();
         proxyForm.FormClosed += tmp_proxyForm_FormClosed;
     }
 }
 void proxyForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     proxyForm.Dispose();
     proxyForm = null;
     Utils.ReleaseMemory(true);
 }
 void proxyForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     proxyForm = null;
     Utils.ReleaseMemory(true);
 }
 private void ShowProxyForm()
 {
     if (proxyForm != null)
     {
         proxyForm.Activate();
     }
     else
     {
         proxyForm = new ProxyForm(controller);
         proxyForm.Show();
         proxyForm.FormClosed += proxyForm_FormClosed;
     }
 }
 void proxyForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     proxyForm.Dispose();
     proxyForm = null;
 }