コード例 #1
0
ファイル: frmAgendaAvNova.cs プロジェクト: 4nub1s/infoGym
 private void btnAluno_Click(object sender, EventArgs e)
 {
     frmAluGerenciamento frmAlu = new frmAluGerenciamento(true, null);
     frmAlu.ShowDialog();
     if (frmAlu.getPesquisaRealizada())
     {
         alu.Id = frmAlu.getAluId();
         alu = alu.getAlunoById();
         ttbAluno.Text = alu.Nome;
     }
     else
     {
         alu = new Aluno();
         ttbAluno.Text = "";
     }
 }
コード例 #2
0
ファイル: frmTermoNovo.cs プロジェクト: 4nub1s/infoGym
 private void btnSelecionar_Click(object sender, EventArgs e)
 {
     frmAluGerenciamento frmAluGer = new frmAluGerenciamento(true, user);
     frmAluGer.ShowDialog();
     if (frmAluGer.getPesquisaRealizada())
     {
         alu.Id = frmAluGer.getAluId();
         alu = alu.getAlunoById();
         if (alu.TerId == "")
             ttbAluno.Text = alu.Nome;
         else
         {
             MessageBox.Show("Aluno já possui termo cadastrado em seu nome!", "Não permitido!", MessageBoxButtons.OK,
                 MessageBoxIcon.Exclamation);
             ttbAluno.Text = "";
         }
     }
     else
         ttbAluno.Text = "";
 }
コード例 #3
0
ファイル: frmVendaNova.cs プロジェクト: 4nub1s/infoGym
 private void btnAluAdd_Click(object sender, EventArgs e)
 {
     frmAluGerenciamento frmAlu = new frmAluGerenciamento(true, user);
     frmAlu.ShowDialog();
     if (frmAlu.getPesquisaRealizada())
     {
         alu = new Aluno();
         alu.Id = frmAlu.getAluId();
         alu = alu.getAlunoById();
         ttbAluNome.Text = alu.Nome;
         cbbFormaPgmto.Enabled = true;
         cbbFormaPgmto.Text = "Na mensalidade";
     }
     else
     {
         alu = new Aluno();
         ttbAluNome.Text = "";
         cbbFormaPgmto.Enabled = false;
         cbbFormaPgmto.Text = "À vista";
     }
 }
コード例 #4
0
ファイル: frmMatriculaNova.cs プロジェクト: 4nub1s/infoGym
 private void btnAluBuscar_Click(object sender, EventArgs e)
 {
     frmAluGerenciamento frmAlu = new frmAluGerenciamento(true, user);
     frmAlu.ShowDialog();
     if (frmAlu.getPesquisaRealizada())
     {
         aluno.Id = frmAlu.getAluId();
         aluno = aluno.getAlunoById();
         ttbAluno.Text = aluno.Nome;
         imagem.Image = new Bitmap(fotoPath + aluno.Id + ".jpg");
     }
     else
     {
         aluno.Id = 0;
         ttbAluno.Text = "";
     }
 }