Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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);
        }
Example #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");
        }
Example #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");
        }