public override void Refresh(SSOAppInfo appInfo) { this.general.AppName = appInfo.Name; this.general.AppDescription = appInfo.Description; this.general.AllowLocalAccounts = appInfo.AllowLocalAccounts; this.general.UseSSOAffiliateAdmins = appInfo.UseSSOAffiliateAdmins; }
public override void Update(SSOAppInfo appInfo) { appInfo.Name = this.general.AppName; appInfo.Description = this.general.AppDescription; appInfo.AllowLocalAccounts = this.general.AllowLocalAccounts; appInfo.UseSSOAffiliateAdmins = this.general.UseSSOAffiliateAdmins; }
public override void Refresh(SSOAppInfo appInfo) { this.accounts.UserAccounts = appInfo.UserAccounts; this.accounts.AdminAccounts = appInfo.AdminAccounts; this.accounts.AllowLocalAccounts = appInfo.AllowLocalAccounts; this.accounts.UseSSOAffiliateAdmins = appInfo.UseSSOAffiliateAdmins; }
private void PropertyPage_Save(object sender, ResultEventArgs <bool> e) { if (this.generalPropPage.IsValid() == false || this.accountsPropPage.IsValid() == false) { MsgBoxUtil.Show(this.generalPropPage.ParentSheet, "Some information is missing or incorrect. Please review and correct the information entered on each page."); e.Result = false; } else { if (this.generalPropPage.IsDirty() == true || this.accountsPropPage.IsDirty() == true) { // load app info from SSO this.appInfo = SSOManager.GetApplicationInfo(this.appInfo.Name); // update it with new information from property pages this.generalPropPage.Update(this.appInfo); this.accountsPropPage.Update(this.appInfo); // save changes into SSO SSOManager.UpdateApplicationInfo(this.appInfo); // notify subscribers the application has been saved this.OnSaved(EventArgs.Empty); } e.Result = true; } }
public AppPropertyPageManager(string appName) { // load app info from SSO this.appInfo = SSOManager.GetApplicationInfo(appName); // initialize property pages // general this.generalPropPage = new AppGeneralPropertyPage(); this.generalPropPage.Load += PropertyPage_Load; this.generalPropPage.Save += PropertyPage_Save; // accounts this.accountsPropPage = new AppAccountsPropertyPage(); }
private void ShowStep(int stepNumber, int prevStepNumber = -1) { // get the current step AppWizardStep step = this.steps[stepNumber]; // if there was a previous step; get the data entered in that step // and refresh the current step if (prevStepNumber != -1) { SSOAppInfo appInfo = new SSOAppInfo(); this.steps[prevStepNumber].Update(appInfo); step.Refresh(appInfo); } this.pnlContainer.Controls.Clear(); this.pnlContainer.Controls.Add(step); // update state of navigation buttons this.UpdateButtonsState(); }
public override void Update(SSOAppInfo appInfo) { appInfo.UserAccounts = this.accounts.UserAccounts; appInfo.AdminAccounts = this.accounts.AdminAccounts; }
public virtual void Update(SSOAppInfo appInfo) { }
public virtual void Refresh(SSOAppInfo appInfo) { }