Example #1
0
        protected void next_Click(object sender, EventArgs e)
        {
            if (this.authType.SelectedValue.ToLower().Contains("dc") && (
                    string.IsNullOrWhiteSpace(this.dc.Text) ||
                    string.IsNullOrWhiteSpace(this.administrator.Text) ||
                    string.IsNullOrWhiteSpace(this.password.Text)
                    ))
            {
                this.AjaxPage.PageEngine.ShowMessageBox("参数设定错误");
                this.AjaxPage.PageEngine.UpdateControlRender(this);
                return;
            }
            InstallSettingGroup group = new InstallSettingGroup
            {
                Name  = "passport",
                Value = this.authType.SelectedItem.Value
            };

            if (this.authType.SelectedValue.ToLower().Contains("dc"))
            {
                group.AddItem(new InstallSettingItem
                {
                    Name  = "DC",
                    Value = this.dc.Text.Trim()
                });
                group.AddItem(new InstallSettingItem
                {
                    Name  = "Administrator",
                    Value = this.administrator.Text.Trim()
                });
                group.AddItem(new InstallSettingItem
                {
                    Name  = "Password",
                    Value = this.password.Text.Trim()
                });
            }
            InstallContext.AddGroup(group);
            this.InstallPage.NextStep();
        }
Example #2
0
        protected void next_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(this.connString.Text))
            {
                this.AjaxPage.PageEngine.ShowMessageBox("参数设定错误");
                this.AjaxPage.PageEngine.UpdateControlRender(this);
                return;
            }
            InstallSettingGroup group = new InstallSettingGroup
            {
                Name  = "data-provider",
                Value = this.dataRepoType.SelectedItem.Value
            };

            group.AddItem(new InstallSettingItem
            {
                Name  = "ConnectionString",
                Value = this.connString.Text.Trim()
            });
            InstallContext.AddGroup(group);
            this.InstallPage.NextStep();
        }