示例#1
0
        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();
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
 private void Insert(object o)
 {
     v.ContactEdit conEdit = new v.ContactEdit();
     conEdit.ShowDialog();
     Refresh();
 }