private void changeStylesToolStripMenuItem_Click(object sender, EventArgs e) { if (frmStyleConfig.Visible == false) { frmStyleConfig = new ConfigStyles(SciEditor, lex.GetStyleNameIndex()); frmStyleConfig.Show(); } else { frmStyleConfig.BringToFront(); } }
private void changeStylesToolStripMenuItem_Click(object sender, EventArgs e) { if (frmStyleConfig == null || frmStyleConfig.Visible == false) { frmStyleConfig = new ConfigStyles(); frmStyleConfig.Show(); } else { frmStyleConfig.BringToFront(); } }
private void mainForm_Load(object sender, EventArgs e) { bool defaultEditor = isDefaultEditor(); defaultEditorToolStripMenuItem.Checked = defaultEditor; if (Properties.Settings.Default.ForceDefaultEditor) { forceAsDefaultEditorToolStripMenuItem.Checked = true; if (defaultEditor == false && makeDefaultEditor()) { defaultEditorToolStripMenuItem.Checked = true; } } lex = new Styler(SciEditor); frmStyleConfig = new ConfigStyles(SciEditor, lex.GetStyleNameIndex()); selectedFont = new Font(Properties.Settings.Default.DefaultFontName, Properties.Settings.Default.DefaultFontSize); glyphTable.Font = selectedFont; autoCompleteList.AddRange(new string[] { "ANY", "VK_KEY_1", "VK_KEY_2", "VK_KEY_3", "VK_KEY_4", "VK_KEY_5", "VK_KEY_6", "VK_KEY_7", "VK_KEY_8", "VK_KEY_9", "VK_KEY_0", "VK_KEY_A", "VK_KEY_B", "VK_KEY_C", "VK_KEY_D", "VK_KEY_E", "VK_KEY_F", "VK_KEY_G", "VK_KEY_H", "VK_KEY_I", "VK_KEY_J", "VK_KEY_K", "VK_KEY_L", "VK_KEY_M", "VK_KEY_N", "VK_KEY_O", "VK_KEY_P", "VK_KEY_Q", "VK_KEY_R", "VK_KEY_S", "VK_KEY_T", "VK_KEY_U", "VK_KEY_V", "VK_KEY_W", "VK_KEY_X", "VK_KEY_Y", "VK_KEY_Z", "VK_NUMPAD0", "VK_NUMPAD2", "VK_NUMPAD3", "VK_NUMPAD4", "VK_NUMPAD5", "VK_NUMPAD6", "VK_NUMPAD7", "VK_NUMPAD8", "VK_NUMPAD9", "VK_NUMPAD10", "NULL", "VK_BACK", "VK_TAB", "VK_ENTER", "VK_RETURN", "VK_SHIFT", "VK_CONTROL", "VK_CTRL", "VK_MENU", "VK_ALT", "VK_SPACE", "VK_PRIOR", "VK_CAPITAL", "VK_CAPSLOCK", "VK_OEM_1", "VK_COLON", "VK_OEM_2", "VK_QUESTION", "VK_OEM_3", "VK_CFLEX", "VK_OEM_4", "VK_LBRACKET", "VK_OEM_5", "VK_BACKSLASH", "VK_OEM_6", "VK_RBRACKET", "VK_OEM_7", "VK_QUOTE", "VK_OEM_8", "VK_EXCM", "VK_OEM_AX", "VK_OEM_102", "VK_LESSTHEN", "VK_ICO_HELP", "VK_ICO_00", "VK_OEM_MINUS", "VK_OEM_PLUS", "VK_RMENU", "VK_RALT", "VK_ALT_GR", "VK_LMENU", "VK_LALT", "VK_RCONTROL", "VK_RCTRL", "VK_LCTRL", "VK_LCONTROL", "VK_LSHIFT", "VK_RSHIFT" } ); Text = "Untitled" + titleSuffix; glyphTable.HexNotation = Properties.Settings.Default.HexNotation; hexadecimalToolStripMenuItem.Checked = glyphTable.HexNotation; lineNumbersToolStripMenuItem.Checked = Properties.Settings.Default.LineNumber; UpdateRecentFiles(); string[] tabs = Properties.Settings.Default.LastTabs.Split(new char[] { '|' }, StringSplitOptions.RemoveEmptyEntries); foreach (string tab in tabs) { CreateNewDocument(tab); } string[] args = Environment.GetCommandLineArgs(); if (args.Length > 1) { if (!SwitchIfOpened(args[1])) { CreateNewDocument(args[1]); } } if (dockPanel.DocumentsCount == 0) { CreateNewDocument(string.Empty); } glyphTable.Filter = Properties.Settings.Default.GlyphFilterText; txtFilter.Text = glyphTable.Filter; }