예제 #1
0
        private void GuiStateUpdateWorker(GuiStateArgs e)
        {
            skipEvents = true;
            followTailCheckBox.Checked              = e.FollowTail;
            menuStrip1.Enabled                      = e.MenuEnabled;
            timeshiftToolStripMenuItem.Enabled      = e.TimeshiftPossible;
            timeshiftToolStripMenuItem.Checked      = e.TimeshiftEnabled;
            timeshiftMenuTextBox.Text               = e.TimeshiftText;
            timeshiftMenuTextBox.Enabled            = e.TimeshiftEnabled;
            multiFileToolStripMenuItem.Enabled      = e.MultiFileEnabled; // disabled for temp files
            multiFileToolStripMenuItem.Checked      = e.IsMultiFileActive;
            multiFileEnabledStripMenuItem.Checked   = e.IsMultiFileActive;
            cellSelectModeToolStripMenuItem.Checked = e.CellSelectMode;
            RefreshEncodingMenuBar(e.CurrentEncoding);
            if (e.TimeshiftPossible && ConfigManager.Settings.preferences.timestampControl)
            {
                dateTimeDragControl.MinDateTime = e.MinTimestamp;
                dateTimeDragControl.MaxDateTime = e.MaxTimestamp;
                dateTimeDragControl.DateTime    = e.Timestamp;
                dateTimeDragControl.Visible     = true;
                dateTimeDragControl.Enabled     = true;
                dateTimeDragControl.Refresh();
            }
            else
            {
                dateTimeDragControl.Visible = false;
                dateTimeDragControl.Enabled = false;
            }

            toolStripButtonBubbles.Checked        = e.ShowBookmarkBubbles;
            highlightGroupsComboBox.Text          = e.HighlightGroupName;
            columnFinderToolStripMenuItem.Checked = e.ColumnFinderVisible;

            skipEvents = false;
        }
예제 #2
0
 protected void OnGuiState(GuiStateArgs e)
 {
     GuiStateEventHandler handler = GuiStateUpdate;
     if (handler != null)
     {
         handler(this, e);
     }
 }
예제 #3
0
 private void GuiStateUpdate(object sender, GuiStateArgs e)
 {
     BeginInvoke(new GuiStateUpdateWorkerDelegate(GuiStateUpdateWorker), e);
 }