Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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");
        }
Esempio n. 6
0
        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");
        }