/// <summary> /// Event which is fired when the <see cref="simpleButtonOK"/> is clicked. This method transfers information to <see cref="Kinematics_Software_New.CreateHeatMapWorksheet(string, BatchRunOutputMode, HeatMapMode, SpecialCaseOption)"/> /// which then creates a new <see cref="HeatMapWorksheet"/> and also /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void simpleButtonOK_Click(object sender, EventArgs e) { toolStripProgressBar1.ProgressBar.Step = 10; toolStripProgressBar1.ProgressBar.Increment(10); toolStripProgressBar1.ProgressBar.Update(); R1 = Kinematics_Software_New.AssignFormVariable(); toolStripProgressBar1.ProgressBar.Increment(10); toolStripProgressBar1.ProgressBar.Update(); HeatMapName = textEditHeatMapName.Text; toolStripProgressBar1.ProgressBar.Increment(10); toolStripProgressBar1.ProgressBar.Update(); if (Operationmode == Mode.Create) { if (SpecialCase != SpecialCaseOption.None) { WorkSheetID = R1.CreateHeatMapWorksheet(textEditHeatMapName.Text, OutputMode, HeatMapMode.SpecialCase, SpecialCase); } else if (SpecialCase == SpecialCaseOption.None) { WorkSheetID = R1.CreateHeatMapWorksheet(textEditHeatMapName.Text, OutputMode, HeatMapMode.RegularHeatMap, SpecialCaseOption.None); } } toolStripProgressBar1.ProgressBar.Increment(10); toolStripProgressBar1.ProgressBar.Update(); HeatMapWorksheet.Worksheets[WorkSheetID - 1].GeatHeatMapInformation(OutputChannel, BatchRunGUI_ForHeatMap, LoadCaseList_ForHeatMap); toolStripProgressBar1.ProgressBar.Increment(10); toolStripProgressBar1.ProgressBar.Update(); toolStripProgressBar1.ProgressBar.Value = 100; toolStripProgressBar1.ProgressBar.Update(); this.Hide(); }