public static void AddTestData() { HastaServis servis = new HastaServis(); servis.Ekle("Kemal", "Alkan", 1.65f, 85); servis.Ekle("Mert", "Günal", 1.90f, 65); servis.Ekle("Tuna", "Avcı", 1.55f, 105); servis.Ekle("Aslı", "Kolsuz", 1.05f, 85); servis.Ekle("Feride", "Gül", 1.90f, 100); }
private void BtnKaydet_Click(object sender, EventArgs e) { HastaServis servis = new HastaServis(); servis.Ekle(txtAd.Text, txtSoyad.Text, Convert.ToSingle(txtBoy.Text), Convert.ToSingle(txtKilo.Text)); Util.TxtCleaner.Temizle(groupBox1); }
private void txtHastaArama_TextChanged(object sender, EventArgs e) { HastaServis.TCnumarasinaGoreHastaAra(txtHastaArama.Text, lstHasta); if (!(lstHasta.Items.Count > 0)) { gbRndIslemleri.Enabled = false; } else { gbRndIslemleri.Enabled = true; } }
private void FrmRandevu_Load(object sender, EventArgs e) { gbRndIslemleri.Enabled = false; txtHastaArama.MaxLength = 11; txtHastaArama.Enabled = false; txtTcAramaTabPage.Enabled = false; btnRandevuSec.Enabled = false; menuStripRandevu.Enabled = false; HastaServis.TumHastalariListBoxaGetir(lstHasta); HastaServis.TumHastalariListBoxaGetir(listBoxHastaTabPage); if (lstHasta.Items.Count > 0) { txtHastaArama.Enabled = true; } cmbServis.Items.AddRange(Enum.GetNames(typeof(Branslar))); cmbBoxSrvs.Items.AddRange(Enum.GetNames(typeof(Branslar))); }
private void txtTcAramaTabPage_TextChanged(object sender, EventArgs e) { HastaServis.TCnumarasinaGoreHastaAra(txtTcAramaTabPage.Text, listBoxHastaTabPage); }