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; }
private void ConfirmButtonClick(object sender, EventArgs args) { if (getDelay.Checked) { result = "The average of delay is: " + client.GetDelay() + "ms"; CreateResultPanel(); } if (getRequestFromClient.Checked) { choice = 2; CreateSearchPanel(); } if (getRequestToVelib.Checked) { choice = 1; CreateSearchPanel(); } if (getCache.Checked) { result = "The quantity of cache is: " + client.GetCacheNumber(); CreateResultPanel(); } }