public PanelContextMenu() { ClearEntries = new ToolStripMenuItem(TextHelper.GetString("Label.ClearEntries"), null, ClearEntries_Click); CopyEntry = new ToolStripMenuItem(TextHelper.GetString("Label.CopyEntry"), null, CopyEntry_Click); IgnoreEntry = new ToolStripMenuItem(TextHelper.GetString("Label.IgnoreEntry"), null, IgnoreEntry_Click); ClearIgnoredEntries = new ToolStripMenuItem(TextHelper.GetString("Label.ClearIgnoredEntries"), null, ClearIgnoredEntries_Click); NextEntry = new ToolStripMenuItem(TextHelper.GetString("Label.NextEntry"), null, NextEntry_Click); PreviousEntry = new ToolStripMenuItem(TextHelper.GetString("Label.PreviousEntry"), null, PreviousEntry_Click); CopyEntry.ShortcutKeyDisplayString = DataConverter.KeysToString(CopyEntryKeys); IgnoreEntry.ShortcutKeyDisplayString = DataConverter.KeysToString(IgnoreEntryKeys); Items.AddRange(new ToolStripItem[] { ClearEntries, CopyEntry, IgnoreEntry, ClearIgnoredEntries, NextEntry, PreviousEntry, }); Font = PluginBase.Settings.DefaultFont; Renderer = new DockPanelStripRenderer(false); }
public NavigationBar(ITabbedDocument document, Settings settings) { InitializeComponent(); InitializeContextMenu(); if (_icons == null) { InitializeIcons(); } Renderer = new DockPanelStripRenderer(); importComboBox.FlatStyle = PluginBase.Settings.ComboBoxFlatStyle; classComboBox.FlatStyle = PluginBase.Settings.ComboBoxFlatStyle; memberComboBox.FlatStyle = PluginBase.Settings.ComboBoxFlatStyle; _document = document; _fileModel = ASContext.Context.CurrentModel; _settings = settings; RefreshSettings(); HookEvents(); updateTimer.Start(); }