Example #1
0
        private void VisualizarFase()
        {
            int linhaGrid = 0;

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

            linhaGrid = gvFeriados.SelectedCells[0].RowIndex;

            Feriado feriado = new Feriado()
            {
                idFeriado = int.Parse(gvFeriados[0, linhaGrid].Value.ToString()),
                Dia       = DateTime.Parse(gvFeriados[1, linhaGrid].Value.ToString()).Day,
                Mes       = DateTime.Parse(gvFeriados[1, linhaGrid].Value.ToString()).Month,
                Descricao = gvFeriados[2, linhaGrid].Value.ToString()
            };

            FeriadoManutencao form = new FeriadoManutencao(feriado);

            form.ShowDialog();

            btPesquisar_Click(null, null);
        }
Example #2
0
        private void btNovo_Click(object sender, EventArgs e)
        {
            FeriadoManutencao form = new FeriadoManutencao(new Feriado());

            form.ShowDialog();

            btPesquisar_Click(null, null);
        }