private void btnTest_Click(object sender, EventArgs e)
 {
     lblHeader.Text               = "Automated Autopark";
     pnlWelcome.Visible           = false;
     pnlManual.Visible            = false;
     btnEmptyNotification.Visible = false;
     pnlTest.Visible              = true;
     pnlTest.BringToFront();
     pbLoading.Value = 1;
     TestedPark      = new Autopark(new Stack(15), new Queue(15), new LinkedList());
     pbLoading.Value = 15;
     FakeData(TestedPark);
     pbLoading.Value     = 35;
     lblCompName.Text    = HardwareInfo.GetComputerName();
     pbLoading.Value     = 45;
     lblCpuName.Text     = HardwareInfo.GetCPUManufacturer();
     pbLoading.Value     = 55;
     lblRam.Text         = HardwareInfo.GetPhysicalMemory();
     pbLoading.Value     = 65;
     lblOS.Text          = HardwareInfo.GetOSInformation();
     pbLoading.Value     = 75;
     lblOneTime.Text     = ((int)TestEt()).ToString();
     pbLoading.Value     = 85;
     lblFiveSecs.Text    = "5.000";
     pbLoading.Value     = 95;
     lblQuantity.Text    = ((int)(5000 / TestEt())).ToString() + "x";
     pbLoading.Value     = 99;
     lblOneQuantity.Text = "1x";
     pbLoading.Value     = 100;
     pnlLoading.Visible  = false;
 }
        public void FakeData(Autopark _Park)
        {
            Random r = new Random();
            Car    C;
            Node   n;

            for (int i = 0; i < _Park.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i, carType = 2
                };
                n = new Node()
                {
                    Data = C
                };
                _Park.SecondFlat.InsertLast(n);
            }
            for (int i = 0; i < _Park.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i + 15, carType = 1
                };
                _Park.FirstFlat.Insert(C);
            }
            for (int i = 0; i < _Park.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i + 30, carType = 3
                };
                _Park.Basement.Push(C);
            }
        }
 private void btnBasla_Click(object sender, EventArgs e)
 {
     pnlTest.Visible         = false;
     pnlInformations.Visible = false;
     pnlManual.Visible       = true;
     lblHeader.Visible       = true;
     lblHeader.Text          = "Manual Autopark";
     pnlManual.BringToFront();
     if (btnEmptyNotification.Visible == true || _Autopark.Basement.count < _Autopark.Basement.size || _Autopark.SecondFlat.count < _Autopark.Basement.size)
     {
         _Autopark = new Autopark(new Stack(15), new Queue(15), new LinkedList());
         Form1_Load(this, null);
     }
     Listele();
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            ilistBasement.Images.Clear();
            ilistFirstFlat.Images.Clear();
            ilistSecondFlat.Images.Clear();
            _Autopark = new Autopark(new Stack(15), new Queue(15), new LinkedList());
            Random r = new Random();
            Car    C;
            Node   n;

            for (int i = 0; i < _Autopark.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i, carType = r.Next(1, 14)
                };
                n = new Node()
                {
                    Data = C
                };
                _Autopark.SecondFlat.InsertLast(n);
                ilistSecondFlat.Images.Add((n.Data.id).ToString(), Image.FromFile(n.Data.imageUrl));
            }
            for (int i = 0; i < _Autopark.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i + 15, carType = 1
                };
                _Autopark.FirstFlat.Insert(C);
                ilistFirstFlat.Images.Add((_Autopark.FirstFlat.Data[i].id).ToString(), Image.FromFile(_Autopark.FirstFlat.Data[i].imageUrl));
            }
            for (int i = 0; i < _Autopark.Basement.size; i++)
            {
                C = new Car()
                {
                    id = i + 30, carType = 3
                };
                _Autopark.Basement.Push(C);
                ilistBasement.Images.Add((_Autopark.Basement.Data[i].id).ToString(), Image.FromFile(_Autopark.Basement.Data[i].imageUrl));
            }
        }