コード例 #1
0
        private void btnBaixa_Click(object sender, EventArgs e)
        {
            DevolverChave telaDevolver = new DevolverChave(gridEmprestimo.CurrentRow.Cells[0].Value.ToString(), usuario);

            telaDevolver.ShowDialog();

            atualizarGridEmprestimo();
        }
コード例 #2
0
 private void BtnEmprestar_Click(object sender, EventArgs e)
 {
     if (emprestimo.Text == "N/A")
     {
         CadastrarEmprestimo cadastrarEmp = new CadastrarEmprestimo(usuario, new List <string> {
             gridChaves.CurrentRow.Cells[5].Value.ToString()
         });
         cadastrarEmp.ShowDialog();
         atualizarGridChaves();
     }
     else
     {
         DevolverChave devolucao = new DevolverChave(emprestimo.Text, usuario);
         devolucao.ShowDialog();
         atualizarGridChaves();
     }
 }