public FormConfiger(int serverIndex = -1) { setting = Service.Setting.Instance; configer = new Controller.Configer.Configer(serverIndex); formSearch = null; InitializeComponent(); formTitle = this.Text; InitComboBox(); InitScintilla(); InitDataBinding(); UpdateServerMenu(); SetTitle(configer.GetAlias()); ToggleToolsPanel(setting.isShowConfigureToolsPanel); cboxConfigSection.SelectedIndex = 0; this.FormClosed += (s, a) => { setting.OnSettingChange -= SettingChange; }; this.Show(); setting.OnSettingChange += SettingChange; }
public FormConfiger(int serverIndex = -1) { setting = Service.Setting.Instance; _serverIndex = serverIndex; formSearch = null; InitializeComponent(); formTitle = this.Text; this.Show(); }
void ShowSearchBox() { if (formSearch != null) { return; } formSearch = new FormSearch(scintilla); formSearch.FormClosed += (s, a) => formSearch = null; }
void ShowSearchBox() { if (formSearch != null) { return; } var editor = configer.GetComponent <Controller.ConfigerComponet.Editor>(); formSearch = new FormSearch(editor.GetEditor()); formSearch.FormClosed += (s, a) => formSearch = null; }
public FormConfiger(string originalConfigString = null) { setting = Service.Setting.Instance; formSearch = null; InitializeComponent(); formTitle = this.Text; this.originalConfigString = originalConfigString; #if DEBUG this.Icon = Properties.Resources.icon_light; #endif this.Show(); }