private async void StartButton_Click(object sender, EventArgs e) { _winFormsQueries.AddComputerDetail(); _taskOnline = true; FillTextBoxes(_winFormsQueries.ComputerSummary); AddChartSeries(); StartButton.Hide(); StopButton.Show(); ProgramStatusLabel.Text = @"Program status: Running"; while (_taskOnline) { await UpdateDataAsync(); } }