private void btnEkle_Click(object sender, EventArgs e) { Arac arac = new Arac(); arac.Plaka = tbPlaka.Text; arac.AracTip = (AracTip)lstbAracTip.SelectedItem; arac.Kontak = cbKontak.Checked; arac.Abone = cbAbone.Checked; lstbOtoparkArac.Items.Add(arac); }
private void btnEkle_Click(object sender, EventArgs e) { Arac arac = new Arac(); arac.Plaka = txtPlaka.Text; arac.Tip = (AracTip)lstAracTip.SelectedItem; arac.Kontak = chkKontak.Checked; arac.Abone = chkAbone.Checked; lstAraclar.Items.Add(arac); }
private void CikisYap_Click(object sender, EventArgs e) { if (lstAraclar.SelectedItems == null) { return; } Arac secili = (Arac)lstAraclar.SelectedItem; CikisYapanlar.Add(secili); lstAraclar.Items.Remove(secili); }
private void CikisYap_Click(object sender, EventArgs e) { if (lstbOtoparkArac.SelectedItem == null) { return; } Arac seciliArac = (Arac)lstbOtoparkArac.SelectedItem; CikisYapanlar.Add(seciliArac); lstbOtoparkArac.Items.Remove(seciliArac); }
private void lstAraclar_SelectedIndexChanged(object sender, EventArgs e) { if (lstAraclar.SelectedItem == null) { return; } Arac secili = (Arac)lstAraclar.SelectedItem; secili.Cikis = DateTime.Now; lblPlaka.Text = secili.Plaka; lblSure.Text = secili.Sure.ToString() + "saat"; lblUcret.Text = secili.Ucret.ToString("C2"); }
private void lstbOtoparkArac_SelectedIndexChanged(object sender, EventArgs e) { if (lstbOtoparkArac.SelectedItem == null) { return; } Arac seciliArac = (Arac)lstbOtoparkArac.SelectedItem; seciliArac.AracCikisSaat = DateTime.Now; lblPlakaBilgi.Text = seciliArac.Plaka; lblSureBilgi.Text = seciliArac.Sure.ToString(); lblUcretBilgi.Text = seciliArac.Ucret.ToString("C2"); }