public static void CloseApp() { Bass.BASS_StreamFree(KMCGlobals._recHandle); Bass.BASS_Free(); if (Program.DeleteEncoder == true) { File.Delete(Program.OGGEnc); File.Delete(Program.MP3Enc); } NotifyArea.HideIconTray(); Properties.Settings.Default.Save(); Application.Exit(); }
private void MTT_Click(object sender, EventArgs e) { MTT.Checked = !MTT.Checked; Properties.Settings.Default.MinimizeToTray = MTT.Checked; Properties.Settings.Default.Save(); if (Properties.Settings.Default.MinimizeToTray || Properties.Settings.Default.ShowBalloon) { NotifyArea.ShowIconTray(); } else { NotifyArea.HideIconTray(); } }