private void timeshiftToolStripMenuItem_CheckStateChanged(object sender, EventArgs e) { if (!skipEvents && CurrentLogWindow != null) { CurrentLogWindow.SetTimeshiftValue(timeshiftMenuTextBox.Text); timeshiftMenuTextBox.Enabled = timeshiftToolStripMenuItem.Checked; CurrentLogWindow.TimeshiftEnabled(timeshiftToolStripMenuItem.Checked, timeshiftMenuTextBox.Text); } }
private void timeshiftMenuTextBox_KeyDown(object sender, KeyEventArgs e) { if (CurrentLogWindow == null) { return; } if (e.KeyCode == Keys.Enter) { e.Handled = true; CurrentLogWindow.SetTimeshiftValue(timeshiftMenuTextBox.Text); } }