Пример #1
0
 /// <summary>
 /// 程序退出时,输出所有缓存区日志
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     WindowState        = FormWindowState.Minimized;
     this.ShowInTaskbar = false;
     NfIcon.Visible     = true;
     NfIcon.ShowBalloonTip(1000, "CurseFetcher", "程序已经最小化到托盘中,右键彻底退出", ToolTipIcon.Info);
     e.Cancel = true;
 }
Пример #2
0
 private void Quit()
 {
     Settings.Xlog.Dump();
     NfIcon.Dispose();
     Application.Exit();
 }