Example #1
0
        private void btnNovoResiduo_Click(object sender, EventArgs e)
        {
            frmCadResiduo frm = new frmCadResiduo();

            frm.MdiParent = this.MdiParent;
            frm.populateComboBox();
            frm.Show();
        }
Example #2
0
        private void editarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmCadResiduo frm = new frmCadResiduo();

            frm.MdiParent = this.MdiParent;
            frm.Text      = "Editar Resíduo";
            frm.populateData(dgvResiduos.Rows[dgvResiduos.SelectedRows[0].Index].Cells["Id"].Value.ToString());
            frm.Show();
        }