Example #1
0
 public void applyModel(Models.GridViewModel createFromMe)
 {
     if (!string.IsNullOrEmpty(createFromMe.GridTypeName))
     {
         GridTypeId = new Services.GridViewDataService().GridTypeId(createFromMe.GridTypeName);
     }
     if (!string.IsNullOrEmpty(createFromMe.ViewName))
     {
         ViewName = createFromMe.ViewName;
     }
     if (!string.IsNullOrEmpty(createFromMe.ColumnLayout))
     {
         ColumnLayout = createFromMe.ColumnLayout;
     }
     if (!string.IsNullOrEmpty(createFromMe.FilterDefinition))
     {
         FilterDefinition = createFromMe.FilterDefinition;
     }
     if (createFromMe.IsDefault != null)
     {
         IsDefault = (bool)createFromMe.IsDefault;
     }
     if (createFromMe.IsShared != null)
     {
         IsShared = (bool)createFromMe.IsShared;
     }
     if (createFromMe.UserID != null)
     {
         UserID = (int)createFromMe.UserID;
     }
 }
Example #2
0
 public GridView(Models.GridViewModel createFromMe)
 {
     applyModel(createFromMe);
 }