private void ListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { ContactModelManage contactInfo = DataLV.SelectedItem as ContactModelManage; if (contactInfo != null) { v.ContactEdit conEdit = new v.ContactEdit(contactInfo.ID); conEdit.ShowDialog(); contactManageVM.Refresh(); } }
private void Update(object o) { ContactModel contactInfo = 中项 as ContactModel; if (contactInfo != null) { v.ContactEdit conEdit = new v.ContactEdit(contactInfo.ID); conEdit.ShowDialog(); Refresh(); } else { SendMessage("无选中项", null); } }
private void Insert(object o) { v.ContactEdit conEdit = new v.ContactEdit(); conEdit.ShowDialog(); Refresh(); }