コード例 #1
0
        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;
        }
コード例 #2
0
        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;
        }