Example #1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     foreach (var item in handlers)
     {
         item.Destroy();
     }
     try
     {
         serverProvider.SendMsg("close");
     }
     catch (Exception)
     {
     }
 }
Example #2
0
 private void Gop_DataEvent(string arg1, string arg2)
 {
     if (arg1 == "enter")
     {
     }
     else if (arg1 == "fuhun-capture")
     {
         serverProvider.SendMsg(arg1, user.GameHwnd, arg2);
     }
     else if (arg1 == "fuhun-end")
     {
         var now = DateTime.Now;
         if (now.Hour == 19)
         {
             Task.Run(async() =>
             {
                 await Task.Delay(100);
                 gop.operate("fuhun-init");
             });
         }
     }
 }