public override MyObjectBuilder_GuiControlBase GetObjectBuilder() { MyObjectBuilder_GuiControlGrid gridOb = (MyObjectBuilder_GuiControlGrid)base.GetObjectBuilder(); gridOb.VisualStyle = VisualStyle; gridOb.DisplayRowsCount = RowsCount; gridOb.DisplayColumnsCount = ColumnsCount; return(gridOb); }
public override void Init(MyObjectBuilder_GuiControlBase objectBuilder) { base.Init(objectBuilder); MyObjectBuilder_GuiControlGrid gridOb = (MyObjectBuilder_GuiControlGrid)objectBuilder; VisualStyle = gridOb.VisualStyle; RowsCount = gridOb.DisplayRowsCount; ColumnsCount = gridOb.DisplayColumnsCount; }