예제 #1
0
        private void BtnGiris_Click(object sender, EventArgs e)
        {
            Arac arc = new Arac();

            arc.Plaka  = txtPlaka.Text;
            arc.Tip    = (Aractip)lstbxAractip.SelectedItem;
            arc.Kontak = tikKontak.Checked;
            arc.Abone  = tikAbone.Checked;
            lstAraclar.Items.Add(arc);
        }
예제 #2
0
        private void Cıkıs_Yap(object sender, EventArgs e)
        {
            if (lstAraclar.SelectedItem == null)
            {
                return;
            }

            Arac secili = (Arac)lstAraclar.SelectedItem;

            CıkısYapanlar.Add(secili);
            lstAraclar.Items.Remove(secili);
        }
예제 #3
0
        private void LstAraclar_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (lstAraclar.SelectedItem == null)
            {
                return;
            }
            Arac secili = (Arac)lstAraclar.SelectedItem;

            secili.Cıkıs  = DateTime.Now;
            lblPlaka.Text = secili.Plaka;
            lblSaat.Text  = secili.Sure.ToString();
            lblUcret.Text = secili.Ucret.ToString("C2");
        }