예제 #1
0
        private void btnVisualizar_Click(object sender, EventArgs e)
        {
            Sala         s    = DAO.Read((int.Parse(dgvSalas.CurrentRow.Cells[0].Value.ToString())));
            FormGerSalas form = new FormGerSalas(false, s);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
        }
예제 #2
0
        private void btnNovo_Click(object sender, EventArgs e)
        {
            FormGerSalas form = new FormGerSalas();

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }
예제 #3
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            Sala         s    = DAO.Read((int.Parse(dgvSalas.CurrentRow.Cells[0].Value.ToString())));
            FormGerSalas form = new FormGerSalas(true, s);

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }