Пример #1
0
        public Form1()
        {
            InitializeComponent();
            o = new Overlays();
            t = new Thread(Activate);
            g = new Thread(Activate);

            label1.Text = "Offline.";
        }
Пример #2
0
 private void checkBox1_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBox1.Checked)
     {
         o = new Overlays();
         t = new Thread(o.Run);
         t.Start();
     }
     else
     {
         o.Dispose();
         t.Abort();
     }
 }