Example #1
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            if (childrenAberto("Atualiza Estado"))
            {
                return;
            }
            FormUF fUF = new FormUF();

            fUF.MdiParent = Form1.container;
            fUF.Show();
        }
Example #2
0
        private void editarCelula()
        {
            if (childrenAberto("Atualiza Estado"))
            {
                return;
            }
            int    id    = (int)dgvUF.CurrentRow.Cells[0].Value;
            String nome  = dgvUF.CurrentRow.Cells[1].Value.ToString();
            String sigla = dgvUF.CurrentRow.Cells[2].Value.ToString();
            //bool ativo = (bool)dgvUF.CurrentRow.Cells[4].Value;
            UF     estado = new UF(id, nome, sigla, true);
            FormUF fUF    = new FormUF(estado);

            fUF.MdiParent = Form1.container;
            fUF.Show();
        }