private void frmSensors_Load(object sender, EventArgs e) { this.Form_Timer = new RoombaSCI.Timer(); this.Form_Timer.Period = (int)this.udFormDisplay.Value; //put this on Packet>Config tab // Hook up the Elapsed event for the timer. this.Form_Timer.Tick += new EventHandler(OnTimedEvent); this.Form_Timer.Start(); }
private void frmPacket_Load(object sender, EventArgs e) { pRawBytes.Enabled = this.chkShowRawBytes.Checked; pSyncBytes.Enabled = this.chkShowSyncBytes.Checked; this.lblError.Visible = chkShowErrors.Checked; this.Form_Timer = new RoombaSCI.Timer(); this.Form_Timer.Period = (int)this.udFormDisplay.Value; //put this on Packet>Config tab // Hook up the Elapsed event for the timer. this.Form_Timer.Tick += new EventHandler(OnTimedEvent); this.Form_Timer.Start(); }