Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string startTime               = textBox1.Text;
            string endTime                 = textBox2.Text;
            string delay                   = monitor.GetAverageDelay();
            int    cacheNumber             = monitor.GetCacheNumber();
            string NumberofClient          = monitor.GetTheNumberOfClient(startTime, endTime);
            string NumberofRequestOfClient = monitor.GetRequestOfClient(startTime, endTime);
            string NumberofRequestOfVelib  = monitor.GetRequestToVelib(startTime, endTime);

            textBox3.Text = delay;
            textBox4.Text = cacheNumber.ToString();
            textBox5.Text = NumberofClient;
            textBox6.Text = NumberofRequestOfClient;
            textBox7.Text = NumberofRequestOfVelib;
        }
Esempio n. 2
0
 private void ConfirmSearchButtonClick(object sender, EventArgs args)
 {
     if (startTime.Text == "" || endTime.Text == "")
     {
         MessageBox.Show("Please input a time");
         return;
     }
     if (choice == 2)
     {
         if (startTime.Text == "" || endTime.Text == "")
         {
             MessageBox.Show("Please input a time");
             return;
         }
         result = client.GetRequestFromClient(startTime.Text, endTime.Text);
     }
     if (choice == 1)
     {
         result = client.GetRequestToVelib(startTime.Text, endTime.Text);
     }
     CreateResultPanel();
 }