Carrotware.CMS.Core.UserEditState.Init C# (CSharp) Method

Init() public method

public Init ( ) : void
return void
        public void Init()
        {
            this.EditorMargin = "L";
            this.EditorOpen = "true";
            this.EditorScrollPosition = "0";
            this.EditorWidgetScrollPosition = "0";
            this.EditorSelectedTabIdx = "0";
        }

Usage Example

Ejemplo n.º 1
0
		private void GetSetUserEditState(string ToolbarState, string ToolbarMargin, string ToolbarScroll, string WidgetScroll, string SelTabID) {
			UserEditState editor = UserEditState.cmsUserEditState;

			if (editor == null) {
				editor = new UserEditState();
				editor.Init();
			}

			editor.EditorMargin = String.IsNullOrEmpty(ToolbarMargin) ? "L" : ToolbarMargin.ToUpper();
			editor.EditorOpen = String.IsNullOrEmpty(ToolbarState) ? "true" : ToolbarState.ToLower();
			editor.EditorWidgetScrollPosition = String.IsNullOrEmpty(WidgetScroll) ? "0" : WidgetScroll.ToLower();
			editor.EditorScrollPosition = String.IsNullOrEmpty(ToolbarScroll) ? "0" : ToolbarScroll.ToLower();
			editor.EditorSelectedTabIdx = String.IsNullOrEmpty(SelTabID) ? "0" : SelTabID.ToLower();

			if (String.IsNullOrEmpty(ToolbarMargin) && String.IsNullOrEmpty(ToolbarState)) {
				UserEditState.cmsUserEditState = null;
			} else {
				UserEditState.cmsUserEditState = editor;
			}
		}
All Usage Examples Of Carrotware.CMS.Core.UserEditState::Init