示例#1
0
        private void btnVisualizar_Click(object sender, EventArgs e)
        {
            Produtos    p    = DAO.Read(int.Parse(dgvProdutos.CurrentRow.Cells[0].Value.ToString()));
            FormGerLoja form = new FormGerLoja(false, p);

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

            form.StartPosition = FormStartPosition.CenterParent;
            form.ShowDialog(this);
            LoadDatabase();
            Fill("");
        }
示例#3
0
        private void btnEditar_Click(object sender, EventArgs e)
        {
            Produtos    p    = DAO.Read(int.Parse(dgvProdutos.CurrentRow.Cells[0].Value.ToString()));
            FormGerLoja form = new FormGerLoja(true, p);

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