Exemple #1
0
 public Boolean InsertScreenGroup(ScreenGroups scrg)
 {
     InitDB();
     ScreenGroups l = new ScreenGroups();
     l.Name = scrg.Name;
     l.Description = scrg.Description;
     Boolean functionResult = false;
     try
     {
         l.Save();
         functionResult = true;
     }
     catch (Exception ex)
     {
         functionResult = false;
     }
     return functionResult;
 }
Exemple #2
0
 public ScreenGroups CollectSCreenGroup(ScreenGroups s)
 {
     InitDB();
     return null;
 }
Exemple #3
0
 public Boolean TESTInsertGroup(ScreenGroups s)
 {
     InitDB();
     return true;
 }
Exemple #4
0
 public ScheduleCollection CollectScheduleForScreenGroup(ScreenGroups group, DateTime datetime)
 {
     InitDB();
     ScheduleCollection scheduleCollection = new ScheduleCollection();
     scheduleCollection.LoadAll();
     return scheduleCollection;
 }
Exemple #5
0
 public Boolean RemoveGroup(ScreenGroups groupName)
 {
     InitDB();
     ScreenGroups deleteGroup = new ScreenGroups();
     deleteGroup.LoadByPrimaryKey((long)groupName.Id);
     deleteGroup.MarkAsDeleted();
     deleteGroup.Save();
     return true;
 }