コード例 #1
0
        /// <summary>
        /// Creates a new contact and adds it to the collection.
        /// </summary>
        /// <remarks>The contact is created locally.</remarks>
        void ExecuteNewContactCommand()
        {
            var newContact = new ContactItemViewModel();

            this.Contacts.Add(newContact);
            this.SelectedContact = newContact;
            LoggingViewModel.Instance.Information = "Click the Update Contact button and we'll save the new contact.";
        }
コード例 #2
0
 /// <summary>
 /// Creates a new contact and adds it to the collection. 
 /// </summary>
 /// <remarks>The contact is created locally.</remarks>
 void ExecuteNewContactCommand()
 {
     var newContact = new ContactItemViewModel();
     this.Contacts.Add(newContact);
     this.SelectedContact = newContact;
     LoggingViewModel.Instance.Information = "Click the Update Contact button and we'll save the new contact.";
 }