Esempio n. 1
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (RaceThread != null)
     {
         RaceThread.Abort();
     }
 }
Esempio n. 2
0
        private void ReceiveData()
        {
            while (Runflags)
            {
                Thread.Sleep(1);
                foreach (var proc in Process.GetProcesses())
                {
                    if (proc.ProcessName.ToString().Equals("mook_SendData") == true)
                    {
                        Runflags = false;
                        this.lblReceive02.Text = "실행되었고 값은 " + mook_SendData.Form1.SendName;
                    }
                }
            }

            RaceThread.Abort();
        }