public static ViewState Create(GridControlState gridState, GridView view) { if (!gridState.viewDescriptors.ContainsKey(view.LevelName)) { return(null); } ViewState state = new ViewState(gridState, (ViewDescriptor)gridState.viewDescriptors[view.LevelName]); return(state); }
protected ViewState(ViewState parent, ViewDescriptor descriptor) { this.parent = parent; this.gridState = parent.gridState; this.descriptor = descriptor; }
protected ViewState(GridControlState gridState, ViewDescriptor descriptor) { this.gridState = gridState; this.descriptor = descriptor; this.parent = null; }