public SiswaProperty(Siswa detailSiswa, ManagementSiswa managementSiswa)
 {
     try
     {
         // TODO: Complete member initialization
         this.detailSiswa = detailSiswa;
         this.managementSiswa = managementSiswa;
         InitializeComponent();
         if (detailSiswa != null)
         {
             txtNoFormulir.Text = detailSiswa.no_formulir;
             txtNama.Text = detailSiswa.nama;
             txtTempat.Text = detailSiswa.tempat_lahir;
             txtTanggalLahir.Value = detailSiswa.tgl_lahir;
             txtHp.Text = detailSiswa.hp;
             cboSex.Text = detailSiswa.sex;
             cboGolDarah.Text = detailSiswa.gol_darah;
             txtAlamatJogja.Text = detailSiswa.alamat_jogja;
             txtAlamatAsal.Text = detailSiswa.alamat_asal;
             cboStatusTipe.Text = detailSiswa.status_golongan;
             cboStatusDi.Text = detailSiswa.status_keterangan;
             txtKeluhanKesehatan.Text = detailSiswa.keluhan_kesehatan;
             txtBeladiriYangPernahDiikuti.Text = detailSiswa.beladiri_sebelumnya;
             txtMotivasi.Text = detailSiswa.motivasi;
             txtTahuCapoeiraDari.Text = detailSiswa.tahu_capoeira_dari;
             txtEmergencyCall.Text = detailSiswa.emergency_call_number;
             cboKelas.Text = detailSiswa.kelas;
             txtEmail.Text = detailSiswa.email;
             txtFacebook.Text = detailSiswa.facebook;
             txtTwitter.Text = detailSiswa.twitter;
             cboLevel.Text = detailSiswa.level;
             txtApilido.Text = detailSiswa.apilido;
         }
         txtNoFormulir.Focus();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Пример #2
0
 private void btnManajemenSiswa_Click(object sender, EventArgs e)
 {
     ManagementSiswa managementSiswa = new ManagementSiswa();
     MainLibrary.getInstance().displayModule(managementSiswa);
 }