Esempio n. 1
0
        private void FMain_Load(object sender, EventArgs e)
        {
            // Do init stuff here.
            ippc                 = new CIPPC();
            control              = new CControl(ippc);
            control.UpdateFound += Control_UpdateFound;

            timer           = new System.Timers.Timer();
            timer.Interval  = 5000;
            timer.AutoReset = true;
            timer.Elapsed  += delegate {
                btnUpdate_Click(null, null);
            };
            //timer.Start();

            lsPlayers.MouseClick += LsPlayers_MouseClick;

            this.FormClosing     += FMain_FormClosing;
            this.btnInject.Click += BtnInject_Click;

            Thread thrLogic = new Thread(() => StartLogic());

            thrLogic.Start();
        }
Esempio n. 2
0
 public CControl(CIPPC cIPPC)
 {
     this.ippc = cIPPC;
 }