Inheritance: MCSharp.Heartbeat.Heartbeat
コード例 #1
0
 public static void Init()
 {
     instance = new MinecraftHeartbeat();
     worker = new BackgroundWorker();
     worker.DoWork += new DoWorkEventHandler(worker_DoWork);
     worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
     worker.RunWorkerAsync();
 }
コード例 #2
0
 public static void Init()
 {
     if (instance == null)
     {
         instance                   = new MinecraftHeartbeat();
         worker                     = new BackgroundWorker();
         worker.DoWork             += new DoWorkEventHandler(worker_DoWork);
         worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
         worker.RunWorkerAsync();
     }
 }