public override void SaveSettings() { QueryStringParameterEditor.SavePendingEdits(this); var objModules = new ModuleController(); objModules.UpdateModuleSetting(ModuleId, Setting.SourceUrl, ctlUrlxml.Text); objModules.UpdateModuleSetting(ModuleId, Setting.UrlEncoding, rblQueryStringEncoding.SelectedValue); objModules.UpdateModuleSetting(ModuleId, Setting.SourceAccount, txtAccount.Text); if (txtPassword.Text != FakePasswordTemplate) { objModules.UpdateModuleSetting(ModuleId, Setting.SourcePassWord, txtPassword.Text); } objModules.UpdateModuleSetting(ModuleId, Setting.EnableCache, cbxCaching.Checked.ToString()); }
private void InitializeParameterEditors() { this._advancedParameterEditor = new AdvancedParameterEditor(this._serviceProvider, this._control); this._advancedParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._advancedParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._advancedParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._advancedParameterEditor); this._staticParameterEditor = new StaticParameterEditor(this._serviceProvider); this._staticParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._staticParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._staticParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._staticParameterEditor); this._controlParameterEditor = new ControlParameterEditor(this._serviceProvider, this._control); this._controlParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._controlParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._controlParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._controlParameterEditor); this._formParameterEditor = new FormParameterEditor(this._serviceProvider); this._formParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._formParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._formParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._formParameterEditor); this._queryStringParameterEditor = new QueryStringParameterEditor(this._serviceProvider); this._queryStringParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._queryStringParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._queryStringParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._queryStringParameterEditor); this._routeParameterEditor = new RouteParameterEditor(this._serviceProvider); this._routeParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._routeParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._routeParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._routeParameterEditor); this._cookieParameterEditor = new CookieParameterEditor(this._serviceProvider); this._cookieParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._cookieParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._cookieParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._cookieParameterEditor); this._sessionParameterEditor = new SessionParameterEditor(this._serviceProvider); this._sessionParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._sessionParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._sessionParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._sessionParameterEditor); this._profileParameterEditor = new ProfileParameterEditor(this._serviceProvider); this._profileParameterEditor.RequestModeChange += new EventHandler(this.ToggleAdvancedMode); this._profileParameterEditor.ParameterChanged += new EventHandler(this.OnParametersChanged); this._profileParameterEditor.Visible = false; this._editorPanel.Controls.Add(this._profileParameterEditor); }