Exemplo n.º 1
0
        public void DeleteGroup()
        {
            Models.Inrix.Repositories.GroupMemberRepository gmr = new Models.Inrix.Repositories.GroupMemberRepository();
            Models.Inrix.Repositories.GroupRepository       gr  = new Models.Inrix.Repositories.GroupRepository();
            gr.RemoveByID(this.ID);

            gmr.DeleteByGroupID(this.ID);
        }
Exemplo n.º 2
0
 public static void InsertGroup(string groupName, string groupDescription)
 {
     Models.Inrix.Repositories.GroupRepository gr = new Models.Inrix.Repositories.GroupRepository();
     Models.Inrix.Group newGroup = new Models.Inrix.Group();
     newGroup.Group_Name        = groupName;
     newGroup.Group_Description = groupDescription;
     gr.Add(newGroup);
     //ID = newGroup.Group_ID;
 }
Exemplo n.º 3
0
 public void UpdateRouteGroup(string NewName, string NewDescription)
 {
     Models.Inrix.Repositories.GroupRepository gr = new Models.Inrix.Repositories.GroupRepository();
     Models.Inrix.Group g = new Models.Inrix.Group();
     g.Group_ID          = this.ID;
     g.Group_Description = NewDescription;
     g.Group_Name        = NewName;
     gr.Update(g);
     //groupsTA.Update(NewDescription, NewName, this.ID, this.Name);
 }
Exemplo n.º 4
0
        public void GetGroups()
        {
            Items.Clear();

            //MOE.Common.Data.InrixTableAdapters.GroupsTableAdapter groupsTA = new Data.InrixTableAdapters.GroupsTableAdapter();
            //MOE.Common.Data.Inrix.GroupsDataTable groupsDT = new Data.Inrix.GroupsDataTable();

            //groupsTA.Fill(groupsDT);

            Models.Inrix.Repositories.GroupRepository gr = new Models.Inrix.Repositories.GroupRepository();
            List <Models.Inrix.Group> groupsDT           = gr.GetAll();

            foreach (Models.Inrix.Group row in groupsDT)
            {
                MOE.Common.Business.Inrix.Group group = new Group(row.Group_ID, row.Group_Name, row.Group_Description);

                this.Items.Add(group);
            }
        }