コード例 #1
0
        private void btnAlterar_Click(object sender, EventArgs e)
        {
            if (Convert.ToInt16(dtgPesquisa.Rows[dtgPesquisa.CurrentCell.RowIndex].Cells[0].Value) > 0)
            {
                frmCadastroLivro._pesquisa = Convert.ToInt16(dtgPesquisa.Rows[dtgPesquisa.CurrentCell.RowIndex].Cells[0].Value);
                this.Close();
            }
            frmCadastroLivro cad = new frmCadastroLivro();

            cad.ShowDialog();
        }
コード例 #2
0
        private void btnCadastroLivros_Click(object sender, EventArgs e)
        {
            frmCadastroLivro cadastrarlivro = new frmCadastroLivro();

            cadastrarlivro.ShowDialog();
        }