Ejemplo n.º 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;
 }
Ejemplo n.º 2
0
 public ScreenGroups CollectSCreenGroup(ScreenGroups s)
 {
     InitDB();
     return null;
 }
Ejemplo n.º 3
0
 public Boolean TESTInsertGroup(ScreenGroups s)
 {
     InitDB();
     return true;
 }
Ejemplo n.º 4
0
 public ScheduleCollection CollectScheduleForScreenGroup(ScreenGroups group, DateTime datetime)
 {
     InitDB();
     ScheduleCollection scheduleCollection = new ScheduleCollection();
     scheduleCollection.LoadAll();
     return scheduleCollection;
 }
Ejemplo n.º 5
0
 public Boolean RemoveGroup(ScreenGroups groupName)
 {
     InitDB();
     ScreenGroups deleteGroup = new ScreenGroups();
     deleteGroup.LoadByPrimaryKey((long)groupName.Id);
     deleteGroup.MarkAsDeleted();
     deleteGroup.Save();
     return true;
 }