private void button1_Click(object sender, EventArgs e)
        {
            unitListView1.Items.Clear();
            unitListView2.Items.Clear();
            unitListView3.Items.Clear();
            unitListView4.Items.Clear();
            unitListView5.Items.Clear();
            TasksListView.Items.Clear();

            EfficiencyLabel.Text     = "Efficiency:";
            OperationsDoneLabel.Text = "Operations done:";
            TasksDoneLabel.Text      = "Tasks done:";
            SecondsLeftlabel.Text    = "Seconds left: 10";

            timeCounter = 10;

            try
            {
                probabilityGenerator = new ProbabilityGenerator(Convert.ToInt32(ProbabilityBox.Text));
            }
            catch
            {
                ProbabilityBox.Text = Convert.ToString(probabilityGenerator.Rand_coef);
            }

            try
            {
                computeUnits[0].Performance = Convert.ToInt32(Unit1Box.Text);
            }
            catch
            {
                Unit1Box.Text = Convert.ToString(computeUnits[0].Performance);
            }
            try
            {
                computeUnits[1].Performance = Convert.ToInt32(Unit2Box.Text);
            }
            catch
            {
                Unit2Box.Text = Convert.ToString(computeUnits[1].Performance);
            }
            try
            {
                computeUnits[2].Performance = Convert.ToInt32(Unit3Box.Text);
            }
            catch
            {
                Unit3Box.Text = Convert.ToString(computeUnits[2].Performance);
            }
            try
            {
                computeUnits[3].Performance = Convert.ToInt32(Unit4Box.Text);
            }
            catch
            {
                Unit4Box.Text = Convert.ToString(computeUnits[3].Performance);
            }
            try
            {
                computeUnits[4].Performance = Convert.ToInt32(Unit5Box.Text);
            }
            catch
            {
                Unit5Box.Text = Convert.ToString(computeUnits[4].Performance);
            }

            maxOperationsCouldBeDone = 0;
            allPerformance           = 0;
            foreach (ComputeUnit computeUnit in computeUnits)
            {
                allPerformance += computeUnit.Performance;
            }

            TickTimer.Start();
            OneSecondTimer.Start();
        }