Beispiel #1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmTujuanExpedisiUpdate ifrmChild = new Master.frmTujuanExpedisiUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
Beispiel #2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         string rowID = dataGridView1.SelectedCells[0].OwningRow.Cells["Tujuan"].Value.ToString();
         Master.frmTujuanExpedisiUpdate ifrmChild = new Master.frmTujuanExpedisiUpdate(this, rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }