void showOutbandDialog() { if (outbandForm != null) { outbandForm.Activate(); } else { outbandForm = new OutBandwidth(); outbandForm.Show(); outbandForm.Activate(); outbandForm.FormClosed += hideOutbandDialog; } }
void hideOutbandDialog(object sender, FormClosedEventArgs e) { outbandForm.Dispose(); outbandForm = null; Utils.ReleaseMemory(true); }