예제 #1
0
 private void cmdADD_Click(object sender, EventArgs e)
 {
     Master.frmMasterStokUpdate ifrmChild = new Master.frmMasterStokUpdate(this);
     ifrmChild.MdiParent = Program.MainForm;
     Program.MainForm.RegisterChild(ifrmChild);
     ifrmChild.Show();
 }
예제 #2
0
 private void cmdEDIT_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedCells.Count > 0)
     {
         string barangIDSubString = dataGridView1.SelectedCells[0].OwningRow.Cells["BarangID"].Value.ToString().Substring(0, 3);
         //if ( barangIDSubString.CompareTo("FXT") == 0)
         //{
         Guid rowID = (Guid)dataGridView1.SelectedCells[0].OwningRow.Cells["RowID"].Value;
         Master.frmMasterStokUpdate ifrmChild = new Master.frmMasterStokUpdate(this, rowID);
         ifrmChild.MdiParent = Program.MainForm;
         Program.MainForm.RegisterChild(ifrmChild);
         ifrmChild.Show();
         //}
         //else
         //{
         //    MessageBox.Show(Messages.Error.CustomStock);
         //}
     }
     else
     {
         MessageBox.Show(Messages.Error.RowNotSelected);
     }
 }