private IUIGrid GetGridDef(ClassDef classDef, string uiDefName) { IUIDef uiDef = classDef.GetUIDef(uiDefName); if (uiDef == null) { throw new ArgumentException (String.Format ("You cannot initialise {0} because it does not contain a definition for UIDef {1} for the class def {2}", this.Grid.Grid.Name, uiDefName, classDef.ClassName)); } IUIGrid gridDef = uiDef.UIGrid; if (gridDef == null) { throw new ArgumentException (String.Format ("You cannot initialise {0} does not contain a grid definition for UIDef {1} for the class def {2}", this.Grid.Grid.Name, uiDefName, classDef.ClassName)); } return(gridDef); }
private IUIGrid GetGridDef(ClassDef classDef, string uiDefName) { IUIDef uiDef = classDef.GetUIDef(uiDefName); if (uiDef == null) { throw new ArgumentException (String.Format ("You cannot initialise {0} because it does not contain a definition for UIDef {1} for the class def {2}", this.Grid.Grid.Name, uiDefName, classDef.ClassName)); } IUIGrid gridDef = uiDef.UIGrid; if (gridDef == null) { throw new ArgumentException (String.Format ("You cannot initialise {0} does not contain a grid definition for UIDef {1} for the class def {2}", this.Grid.Grid.Name, uiDefName, classDef.ClassName)); } return gridDef; }