コード例 #1
0
 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);
     }
 }
コード例 #2
0
 private void timeshiftMenuTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (CurrentLogWindow == null)
     {
         return;
     }
     if (e.KeyCode == Keys.Enter)
     {
         e.Handled = true;
         CurrentLogWindow.SetTimeshiftValue(timeshiftMenuTextBox.Text);
     }
 }