void EDIT() { if (dgvKENDARAAN.SelectedCells.Count > 0) { int id = Convert.ToInt32(dgvKENDARAAN.SelectedCells[0].OwningRow.Cells["ID"].Value.ToString()); string nopol = dgvKENDARAAN.SelectedCells[0].OwningRow.Cells["NOPOL"].Value.ToString(); c.ID = id; c.NOPOL = nopol; MASTER.SUBMASTER.FormKENDARAAN frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormKENDARAAN(this, 1, c); frm.ShowDialog(); } }
void TAMBAH() { MASTER.SUBMASTER.FormKENDARAAN frm = new LOGISTICMANAGAMENTSYSTEM.MASTER.SUBMASTER.FormKENDARAAN(this, 0, null); frm.ShowDialog(); }