private void CancelBtn_Click(object sender, EventArgs e) { isCancelled = true; Debug.WriteLine("CANCEL BUTTON WAS CLICKED!!!"); BackgroundWorkerSchedules.CancelAsync(); Debug.WriteLine("isFirstCalculation: " + RefToCourseSelectForm.getIsFirstCalculationState()); if (RefToCourseSelectForm.getIsFirstCalculationState() == false) { RefToResultLoadForm.Show(); RefToResultLoadForm.setIsOptimizedState(false); RefToResultLoadForm.ChangeOptimizationText(); } else { RefToCourseSelectForm.Show(); } acceptableSchedulesTemp.Clear(); overlapSchedulesTemp.Clear(); acceptableSchedules.Clear(); overlapSchedules.Clear(); resultSchedules.Clear(); this.Hide(); }
private void backButton_Click(object sender, EventArgs e) { //clear the monday through friday labels loadingResultsForm.clearDayLabels(); this.Hide(); loadingResultsForm.Show(); }