private void AddContactType() { ContactType ct = this.dm.CreateObject<ContactType>(); ct.Id = GuidComb.Generate(); this.dm.AddContactType(ct); ContactTypeViewModel vm = new ContactTypeViewModel(ct); this.AllContactTypes.Add(vm); this.CurrentContactType = vm; }
private void AddContactType() { ContactType ct = this.dm.CreateObject <ContactType>(); ct.Id = GuidComb.Generate(); this.dm.AddContactType(ct); ContactTypeViewModel vm = new ContactTypeViewModel(ct); this.AllContactTypes.Add(vm); this.CurrentContactType = vm; }