private void ListView_MouseDoubleClick(object sender, MouseButtonEventArgs e) { CompanyModelManage companyInfo = DataLV.SelectedItem as CompanyModelManage; if (companyInfo != null) { v.CompanyEdit comEdit = new v.CompanyEdit(companyInfo.ID); comEdit.ShowDialog(); companyManageVM.Refresh(); } }
private void Update(object o) { CompanyModel companyInfo = 中项 as CompanyModel; if (companyInfo != null) { v.CompanyEdit comEdit = new v.CompanyEdit(companyInfo.ID); comEdit.ShowDialog(); Refresh(); } else { SendMessage("无选中项", null); } }
private void Insert(object o) { v.CompanyEdit comEdit = new v.CompanyEdit(); comEdit.ShowDialog(); Refresh(); }