Exemplo n.º 1
0
 public void StopCoreThen(Action next = null)
 {
     Task.Factory.StartNew(() => server.StopCoreThen(
                               () =>
     {
         OnRequireNotifierUpdate?.Invoke(this, EventArgs.Empty);
         OnRequireKeepTrack?.Invoke(this, new VgcApis.Models.BoolEvent(false));
         next?.Invoke();
     }));
 }
Exemplo n.º 2
0
 bool UpdateCore()
 {
     try
     {
         var isRunning = core.isRunning;
         if (isRunning)
         {
             core.StopCoreThen(() =>
             {
                 UnzipPackage();
                 setting.ActivateServer();
             });
         }
         else
         {
             UnzipPackage();
         }
     }
     catch
     {
         return(false);
     }
     return(true);
 }
Exemplo n.º 3
0
 private void stopToolStripMenuItem_Click(object sender, EventArgs e)
 {
     core.StopCoreThen(null);
 }
Exemplo n.º 4
0
 public void StopCoreThen(Action next = null)
 {
     Task.Factory.StartNew(() => server.StopCoreThen(next));
 }