protected void Page_Load(object sender, EventArgs e) { MDBInformation mProfile = DBInformationUtility.DBInformation(); lblVersion.Text = mProfile.Version; NameValuePairUtility.SetDropSelection(dropEnableInheritance, mProfile.EnableInheritance.ToString()); }
/// <summary> /// Updated the information in the data store /// </summary> /// <param name="profile">MDBInformation</param> /// <returns>bool or exception</returns> public static bool UpdateProfile(MDBInformation profile) { bool mRetVal = false; BDBInformation mBll = new BDBInformation(SecurityEntityUtility.CurrentProfile(), ConfigSettings.CentralManagement); mRetVal = mBll.UpdateProfile(profile); return(mRetVal); }
public static void InvokeSave(int enableInheritance) { MDBInformation mProfile = DBInformationUtility.DBInformation(); mProfile.EnableInheritance = enableInheritance; if (DBInformationUtility.UpdateProfile(mProfile)) { FunctionUtility.RemoveCachedFunctions(); } }
/// <summary> /// Updates the ZF_INFORMATION table using the properties of a given profile. /// </summary> /// <param name="profile">MDBInformation</param> /// <returns>Boolean</returns> /// <remarks></remarks> public bool UpdateProfile(MDBInformation profile) { if (profile == null) { throw new ArgumentNullException("profile", "profile can not be null (Nothing in Visual Basic)"); } bool mRetVal = false; this.m_DDBInformation.Profile = profile; if (DatabaseIsOnline()) { mRetVal = this.m_DDBInformation.UpdateProfile(); } return(mRetVal); }