예제 #1
0
        private void bIncluir_Click(object sender, EventArgs e)
        {
            FormCadastroTamanho formCadastroTamanho = new FormCadastroTamanho();

            formCadastroTamanho.Operacao            = "Incluir";
            formCadastroTamanho.FormPesquisaTamanho = this;
            formCadastroTamanho.ShowDialog();
            Limpar();
            pesquisar();
        }
예제 #2
0
        private void bAlterar_Click(object sender, EventArgs e)
        {
            FormCadastroTamanho formCadastroTamanho = new FormCadastroTamanho();

            formCadastroTamanho.Operacao            = "Alterar";
            formCadastroTamanho.IdTamanho           = int.Parse(dgvTamanhos.CurrentRow.Cells["colIDTamanho"].Value.ToString());
            formCadastroTamanho.FormPesquisaTamanho = this;
            formCadastroTamanho.ShowDialog();
            Limpar();
            pesquisar();
        }