Beispiel #1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     FrmCustomerInfoAdd fcia = new FrmCustomerInfoAdd(BindClient.Client_id);
     fcia.MdiParent = this.MdiParent;
     fcia.Show();
     this.Close();
 }
Beispiel #2
0
 private void 客户信息录入ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmCustomerInfoAdd childForm = new FrmCustomerInfoAdd(this);
     childForm.MdiParent = this;
     childForm.Show();
     childForm.BringToFront();
     childForm.Show();
 }
 private void tsmiEdit_Click(object sender, EventArgs e)
 {
     int clientid = ((this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id;
     if (clientid > 0)
     {
         FrmCustomerInfoAdd fols = new FrmCustomerInfoAdd(clientid);
         fols.MdiParent = this.MdiParent;
         fols.Show();
     }
 }