Esempio n. 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = this.GetIdInDvg();

            if (id > 0)
            {
                FormProductForm formProductForm = new FormProductForm(this, id);
                formProductForm.Show();
            }
            else
            {
                MessageBox.Show("Nenhum item selecionado!");
            }
        }
Esempio n. 2
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FormProductForm formProductForm = new FormProductForm(this);

            formProductForm.Show();
        }