Example #1
0
        private void Window_Closed(object sender, EventArgs e)
        {
            new TaskFactory().StartNew(new Action(() => {
                PlayController.bassEng.Stop();
                if (AppPropertys.HotKeys != null)
                {
                    AppPropertys.HotKeys.UnRegister();
                }
                AppPropertys.setFreeNotifyIcon();

                //一般配置
                AppPropertys.appSetting.LrcFont   = LrcController.DefaultFont;
                AppPropertys.appSetting.SkinIndex = LrcController.SkinIndex;
                AppPropertys.appSetting.Volume    = PlayController.bassEng.Volume;
                AppPropertys.appSetting.Save();

                //下载模块的配置
                SaveDownloadConfig();
            }));
            Console.WriteLine("保存用户配置…");
        }
Example #2
0
 private void btnExit_Click(object sender, RoutedEventArgs e)
 {
     AppPropertys.setFreeNotifyIcon();
     //Environment.Exit(0);
     Application.Current.Shutdown(-1);
 }