예제 #1
0
 private void pauseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (isPaused)
     {
         return;
     }
     isPaused = true;
     pauseToolStripMenuItem.Checked = isPaused;
     logUpdater.Pause();
 }
예제 #2
0
 void StopCoreWorker(Action next)
 {
     bookKeeper?.Pause();
     try
     {
         GetParent().InvokeEventOnCoreClosing();
         v2rayCore.StopCore();
     }
     finally
     {
         next?.Invoke();
     }
 }
예제 #3
0
        private void pauseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var pause = !pauseToolStripMenuItem.Checked;

            pauseToolStripMenuItem.Checked = pause;
            if (pause)
            {
                logDisplayer.Pause();
            }
            else
            {
                logDisplayer.Run();
            }
        }