Esempio n. 1
0
        private void btNovo_Click(object sender, EventArgs e)
        {
            ManutencaoManutencao form = new ManutencaoManutencao(new Manutencao());

            form.ShowDialog();

            btPesquisar_Click(null, null);
        }
Esempio n. 2
0
        private void VisualizarManutencao()
        {
            int linhaGrid = 0;

            if (gvManutencoes.RowCount == 0)
            {
                return;
            }

            linhaGrid = gvManutencoes.SelectedCells[0].RowIndex;

            Manutencao Manutencao = new Manutencao()
            {
                idManutencao = int.Parse(gvManutencoes[0, linhaGrid].Value.ToString())
            };

            ManutencaoManutencao form = new ManutencaoManutencao(Manutencao);

            form.ShowDialog();

            btPesquisar_Click(null, null);
        }