Ejemplo n.º 1
0
    public PeopleGroup CreateGroup(string name) {
      var dmPeopleGroup = new DataModel.PeopleGroup {
        Id = ACore.Db.GetNextIdFor<DataModel.PeopleGroup>(),
        Name = name
      };

      ACore.Db.InsertOnSubmit(dmPeopleGroup);
      ACore.Db.SubmitChanges();

      var vmPeopleGroup = new PeopleGroup(dmPeopleGroup);
      SetInPalce(vmPeopleGroup, true);
      return vmPeopleGroup;
    }
Ejemplo n.º 2
0
 public PeopleGroup(DataModel.PeopleGroup data) {
   Data = data;
   Id = data.Id;
   Title = data.Name;
   IconName = "appbar_people_multiple";
 }