/// <summary> /// Load the form states such as size from the "stateToLoad" object. /// /// </summary> /// <param name="stateToLoad">The object which contains the states of the form. /// </param> /// <returns> /// Return true if load successfully, false otherwise /// </returns> public virtual bool LoadState(ICustomizationState stateToLoad) { FormCustomizationState customizationState = stateToLoad as FormCustomizationState; if (customizationState == null) { return(false); } customizationState.SetFormStates((Control)this); return(true); }
/// <summary> /// Load the form states such as size from the "stateToLoad" object. /// /// </summary> /// <param name="stateToLoad">The object which contains the states of the form. /// </param> /// <returns> /// Return true if load successfully, false otherwise /// </returns> public virtual bool LoadState(ICustomizationState stateToLoad) { FormCustomizationState customizationState = stateToLoad as FormCustomizationState; if (customizationState == null) return false; customizationState.SetFormStates((Control)this); return true; }