public void Sync() { if (mainForm.DoSyncDevices()) { mainForm.SetLagValue(2); applicationLogic.SetLagThreshold(2); var timerReset = new Timer { Interval = 3000, Enabled = true }; timerReset.Elapsed += new ElapsedEventHandler(ResetLagThreshold); timerReset.Start(); } }
private void TrbLag_Scroll(object sender, EventArgs e) { if (applicationLogic == null) { return; } applicationLogic.SetLagThreshold(trbLag.Value); }
private void trbLag_Scroll(object sender, EventArgs e) { applicationLogic.SetLagThreshold(trbLag.Value); }