Example #1
0
            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);
            }
Example #2
0
 protected ViewState(ViewState parent, ViewDescriptor descriptor)
 {
     this.parent     = parent;
     this.gridState  = parent.gridState;
     this.descriptor = descriptor;
 }
Example #3
0
 protected ViewState(GridControlState gridState, ViewDescriptor descriptor)
 {
     this.gridState  = gridState;
     this.descriptor = descriptor;
     this.parent     = null;
 }