Пример #1
0
        /// <summary>
        /// Add new contact action
        /// </summary>
        private void PopupFileAdd()
        {
            NewContactDialogClass ncdc = new NewContactDialogClass(MainWindow, 0, "", "");
            Contact newContact         = ncdc.Show();

            if (newContact == null)
            {
                return;
            }

            // Add contact to file contacts
            GlobalObjUI.FileContacts.SimContacts.Add(newContact);
            lstFileContacts.AppendValues(newContact.Description, newContact.PhoneNumber);
        }
Пример #2
0
		/// <summary>
		/// Add new contact action
		/// </summary>
		private void PopupFileAdd()
		{
			NewContactDialogClass ncdc = new NewContactDialogClass(MainWindow, 0, "", "");
			Contact newContact = ncdc.Show();

			if (newContact == null)
			{
				return;
			}
			
			// Add contact to file contacts 
			GlobalObjUI.FileContacts.SimContacts.Add(newContact);
			lstFileContacts.AppendValues(newContact.Description, newContact.PhoneNumber);
		}