Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 private void Insert(object o)
 {
     v.CompanyEdit comEdit = new v.CompanyEdit();
     comEdit.ShowDialog();
     Refresh();
 }