Exemplo n.º 1
0
 private void btnKirala_Click(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count > 0)
     {
         Arac seciliArac = (Arac)listView1.SelectedItems[0].Tag;
         seciliArac.KiralanmaGunu = Convert.ToInt32(txtGunSayisi.Text);
         lstArac.Items.Add(seciliArac);
     }
 }
Exemplo n.º 2
0
        public Siparis(ListBox gelenlstArac)
        {
            InitializeComponent();
            this.lstArac = gelenlstArac;
            decimal toplamTutar = 0;

            for (int i = 0; i < lstArac.Items.Count; i++)
            {
                Arac arac = (Arac)lstArac.Items[i];
                toplamTutar += Convert.ToDecimal(arac.FaturaTutari);
            }
            lblMeblag.Text = toplamTutar.ToString("C");
        }