示例#1
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 0 && e.RowIndex >= 0)
     {
         string rowID = dataGridView1.Rows[e.RowIndex].Cells["ApplicationID"].Value.ToString();
         Administrasi.frmSecurityPartsBrowse ifrmChild = new Administrasi.frmSecurityPartsBrowse(rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
 }
示例#2
0
 private void frmSecurityPartsUpdate_FormClosed(object sender, FormClosedEventArgs e)
 {
     if (this.DialogResult == DialogResult.OK)
     {
         if (this.Caller is Administrasi.frmSecurityPartsBrowse)
         {
             Administrasi.frmSecurityPartsBrowse frmCaller = (Administrasi.frmSecurityPartsBrowse) this.Caller;
             frmCaller.RefreshData();
             frmCaller.FindRow("PartID", txtPartID.Text);
         }
     }
 }