private void tlsDaMenuItemLaida_Click(object sender, EventArgs e) { frmDai dai = new frmDai(); dai.Owner = this; dai.ShowDialog(); }
private void listView1_Click(object sender, EventArgs e) { if (lvQs.SelectedItems[0].Text == "产品信息") { frmtbProduction frmProd1 = new frmtbProduction(); frmProd1.Owner = this; frmProd1.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "产品分类") { frmtbProPath frmpath1 = new frmtbProPath(); frmpath1.Owner = this; frmpath1.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "通话信息") { frmDai dai = new frmDai(); dai.Owner = this; dai.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "电话查询") { frmTel tel = new frmTel(); tel.Owner = this; tel.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "添加员工信息") { frmEmployeeInfo frmInfo11 = new frmEmployeeInfo(1); frmInfo11.Owner = this; frmInfo11.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "删除员工信息") { frmEmployeeInfo frmInfo33 = new frmEmployeeInfo(3); frmInfo33.Owner = this; frmInfo33.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "修改员工信息") { frmEmployeeInfo frmInfo11 = new frmEmployeeInfo(2); frmInfo11.Owner = this; frmInfo11.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "查询员工信息") { frmEmployeeInfo frmInfo22 = new frmEmployeeInfo(4); frmInfo22.Owner = this; frmInfo22.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "添加客户信息") { frmCustomerUpdate CustomerUpdate11 = new frmCustomerUpdate(1); CustomerUpdate11.Owner = this; CustomerUpdate11.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "修改客户信息") { frmCustomerUpdate CustomerUpdate22 = new frmCustomerUpdate(2); CustomerUpdate22.Owner = this; CustomerUpdate22.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "删除客户信息") { frmCustomerUpdate CustomerUpdate33 = new frmCustomerUpdate(3); CustomerUpdate33.Owner = this; CustomerUpdate33.ShowDialog(); } if (lvQs.SelectedItems[0].Text == "查询客户信息") { frmCustomer CustomerF = new frmCustomer(); CustomerF.Owner = this; CustomerF.ShowDialog(); } }