Exemplo n.º 1
0
        private void BtnOtoparkArabaEkle_Click(object sender, EventArgs e)
        {
            btnListele.Visible          = true;
            btnOncelikliListele.Visible = true;
            label2.Visible         = true;
            checkBoxKazanc.Visible = true;
            checkBoxSil.Visible    = true;

            carNumber = Convert.ToInt32(txtArabaSayisi.Text);
            Parking parking = new Parking();

            parking.AddCarToParking();
            parking.AddToPriorityCar();

            btnOtoparkArabaEkle.Enabled = false;
            MessageBox.Show("The cars added to park lot.");
            parkingStatus = 1;
        }
Exemplo n.º 2
0
        private void BtnKazancHesapla_Click(object sender, EventArgs e)
        {
            Parking parking = new Parking();

            MessageBox.Show(parking.CalculateEarnings());
        }