Example #1
0
        private void AddBtn_Click(object sender, EventArgs e)
        {
            if (Gnd.I.DOMAIN_INFO_NUM_MAX <= Gnd.I.DomainInfoList.Count)
            {
                return;
            }

            DomainInfo di = new DomainInfo()
            {
                //Domain = "domain-name", // old
                Domain  = "default",
                RootDir = Directory.GetCurrentDirectory(),
            };

            Gnd.I.DomainInfoList.Add(di);

            using (Form f = new DocRootEditWin(di))
            {
                f.ShowDialog();
            }
            this._ドメイン重複チェック();

            this.RefreshUi();
            this.MainList.SelectedIndex = this.MainList.Items.Count - 1;
        }
Example #2
0
        private void EdtBtn_Click(object sender, EventArgs e)
        {
            DomainInfo di = this.GetSelectedDomainInfo();

            if (di != null)
            {
                using (Form f = new DocRootEditWin(di))
                {
                    f.ShowDialog();
                }
                this._ドメイン重複チェック();
            }
            this.RefreshUi();
            this.MainList.SelectedIndex = this.LastSelIndex;
        }