private void CloseMicStatusOverlay() { if (micStatusForm != null) { micStatusForm.Close(); micStatusForm.Dispose(); micStatusForm = null; } }
private void ExitMenuItem_Click(object sender, EventArgs e) { if (micStatusForm != null) { micStatusForm.Close(); micStatusForm.Dispose(); micStatusForm = null; } Application.Exit(); }
private void ShowMicStatusOverlay() { CloseMicStatusOverlay(); micStatusForm = new MicStatusForm(); micStatusForm.Show(); micStatusForm.Activate(); micStatusForm.FormClosing += (s, e) => { mnuItemMicStatusOverlay.Checked = false; }; UpdateSelectedDevice(); }