Example #1
0
        private void btnAddRawMaterial_Click(object sender, EventArgs e)
        {
            frmDetailRawMaterial frmDetail = new frmDetailRawMaterial();

            frmDetail.MdiParent = this.MdiParent;
            frmDetail.Show();
            this.Close();
        }
Example #2
0
        private void btnUpdateRawMaterial_Click(object sender, EventArgs e)
        {
            frmDetailRawMaterial frmDetail = new frmDetailRawMaterial();

            if (dgvRawMaterial.SelectedRows.Count > 0)
            {
                var id = (int)dgvRawMaterial.SelectedRows[0].Cells["RawMaterialID"].Value;
                frmDetail.SetRawMaterial(id);
                frmDetail.Show();
                this.Close();
            }
        }