예제 #1
0
 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();
 }
예제 #2
0
        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();
            }
        }