Exemplo n.º 1
0
        private void btnAddRawMaterial_Click(object sender, EventArgs e)
        {
            frmDetailRawMaterial frmDetail = new frmDetailRawMaterial();

            frmDetail.MdiParent = this.MdiParent;
            frmDetail.Show();
            this.Close();
        }
Exemplo n.º 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();
            }
        }