/// <summary> /// Add new contact action /// </summary> private void PopupFileAdd() { NewContactDialogClass ncdc = new NewContactDialogClass(this, 0, "", ""); Contact newContact = ncdc.Show(); if (newContact == null) { return; } // Add contact to file contacts GlobalObjUI.FileContacts.SimContacts.Add(newContact); List<string> contact = new List<string>(); contact.Add(" "); contact.Add(newContact.Description); contact.Add(newContact.PhoneNumber); new QTreeWidgetItem(mainwindow_Ui.LstFileContacts, contact); }
/// <summary> /// Add new contact action /// </summary> private void PopupFileAdd() { NewContactDialogClass ncdc = new NewContactDialogClass(this, 0, "", ""); Contact newContact = ncdc.Show(); if (newContact == null) { return; } // Add contact to file contacts GlobalObjUI.FileContacts.SimContacts.Add(newContact); List <string> contact = new List <string>(); contact.Add(" "); contact.Add(newContact.Description); contact.Add(newContact.PhoneNumber); new QTreeWidgetItem(mainwindow_Ui.LstFileContacts, contact); }