Example #1
0
 void train_btn_start_Click(object sender, EventArgs e)
 {
     trainstartcontrol.Dispose();
     traincyclecontrol          = new CycleControl();
     traincyclecontrol.Location = new Point(0, 27);
     traincyclecontrol.Dock     = DockStyle.Fill;
     traincyclecontrol.KeyUp   += new KeyEventHandler(traincyclecontrol_KeyUp);
     traincyclecontrol.KeyDown += new KeyEventHandler(traincyclecontrol_KeyDown);
     this.Controls.Add(traincyclecontrol);
     this.traincyclecontrol.Focus();
     //запускаем таймер
     _traintimer          = new Timer();
     _traintimer.Interval = _traintime;
     _traintimer.Tick    += new EventHandler(_traintimer_Tick);
     _traintimer.Start();
     trainloader = new PNNTestLoader(900, traincyclecontrol);
     trainloader.Start();
 }
Example #2
0
 void train_btn_start_Click(object sender, EventArgs e)
 {
     trainstartcontrol.Dispose();
     traincyclecontrol = new CycleControl();
     traincyclecontrol.Location = new Point(0, 27);
     traincyclecontrol.Dock = DockStyle.Fill;
     traincyclecontrol.KeyUp += new KeyEventHandler(traincyclecontrol_KeyUp);
     traincyclecontrol.KeyDown += new KeyEventHandler(traincyclecontrol_KeyDown);
     this.Controls.Add(traincyclecontrol);
     this.traincyclecontrol.Focus();
     //запускаем таймер
     _traintimer = new Timer();
     _traintimer.Interval = _traintime;
     _traintimer.Tick += new EventHandler(_traintimer_Tick);
     _traintimer.Start();
     trainloader = new PNNTestLoader(900, traincyclecontrol);
     trainloader.Start();
 }