Example #1
0
 private void Shadow_Load(object sender, EventArgs e)
 {
     PopulateCombos();
     checkFollow.Checked           = Properties.Settings.Default.follow;
     checkFollow.CheckedChanged   += (s, a) => { Properties.Settings.Default.follow = checkFollow.Checked; Properties.Settings.Default.Save(); };
     checkAttack.Checked           = Properties.Settings.Default.attack;
     checkAttack.CheckedChanged   += (s, a) => { Properties.Settings.Default.attack = checkAttack.Checked; Properties.Settings.Default.Save(); };
     checkSpectral.Checked         = Properties.Settings.Default.spectral;
     checkSpectral.CheckedChanged += (s, a) => { Properties.Settings.Default.spectral = checkSpectral.Checked; Properties.Settings.Default.Save(); };
     checkWhm.Checked              = Properties.Settings.Default.whm;
     checkWhm.CheckedChanged      += (s, a) => { Properties.Settings.Default.whm = checkWhm.Checked; Properties.Settings.Default.Save(); };
     checkCancel.Checked           = Properties.Settings.Default.cancel;
     checkCancel.CheckedChanged   += (s, a) => { Properties.Settings.Default.cancel = checkCancel.Checked; Properties.Settings.Default.Save(); };
     checkMount.Checked            = Properties.Settings.Default.mount;
     checkMount.CheckedChanged    += (s, a) => { Properties.Settings.Default.mount = checkMount.Checked; Properties.Settings.Default.Save(); };
     textMount.Text                    = Properties.Settings.Default.mountname;
     textMount.TextChanged            += (s, a) => { Properties.Settings.Default.mountname = textMount.Text; Properties.Settings.Default.Save(); };
     checkInteractions.Checked         = Properties.Settings.Default.interactions;
     checkInteractions.CheckedChanged += (s, a) => { Properties.Settings.Default.interactions = checkInteractions.Checked; Properties.Settings.Default.Save(); };
     checkMenuFollow.Checked           = Properties.Settings.Default.menufollow;
     checkMenuFollow.CheckedChanged   += (s, a) => { Properties.Settings.Default.menufollow = checkMenuFollow.Checked; Properties.Settings.Default.Save(); };
     checkRed.Checked                  = Properties.Settings.Default.red;
     checkRed.CheckedChanged          += (s, a) => { Properties.Settings.Default.red = checkRed.Checked; Properties.Settings.Default.Save(); };
     checkBlue.Checked                 = Properties.Settings.Default.blue;
     checkBlue.CheckedChanged         += (s, a) => { Properties.Settings.Default.blue = checkBlue.Checked; Properties.Settings.Default.Save(); };
     SlaveNavThread.Start();
     SlaveThread.Start();
 }
Example #2
0
        /*
         * public void Run()
         * {
         *  Start();
         *  WaitAll();
         *  Verify();
         * }
         * */


        public void Start()
        {
            for (int nt = 0; nt < nthreads; nt++)
            {
                SlaveThread st = new SlaveThread();
                st.parent    = this;
                st.threadnum = nt;
                st.start();
                sthreads.Add(st);
            }
        }
Example #3
0
 private void Shadow_FormClosing(object sender, FormClosingEventArgs e)
 {
     SlaveNavThread.Abort();
     SlaveThread.Abort();
 }
Example #4
0
 public void Start(IProtocol protocol)
 {
     _log.AppendMessage(LogMessageType.Info, $"Starting {Device.Name} slave thread");
     _thread = SlaveThread.Create(Device, protocol, _log);
     _thread.Start();
 }