예제 #1
0
        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;
        }
예제 #2
0
 public FormConfiger(int serverIndex = -1)
 {
     setting      = Service.Setting.Instance;
     _serverIndex = serverIndex;
     formSearch   = null;
     InitializeComponent();
     formTitle = this.Text;
     this.Show();
 }
예제 #3
0
 void ShowSearchBox()
 {
     if (formSearch != null)
     {
         return;
     }
     formSearch             = new FormSearch(scintilla);
     formSearch.FormClosed += (s, a) => formSearch = null;
 }
예제 #4
0
        void ShowSearchBox()
        {
            if (formSearch != null)
            {
                return;
            }
            var editor = configer.GetComponent <Controller.ConfigerComponet.Editor>();

            formSearch             = new FormSearch(editor.GetEditor());
            formSearch.FormClosed += (s, a) => formSearch = null;
        }
예제 #5
0
        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();
        }