private void sbHMAxesDivisionFactor_ValueChanged(object sender, EventArgs e) { HeatMapLayout.CreateHeatMapLayoutDiagram(HeatMapPanel, (int)sbHMAxesDivisionFactor.Value, rbIncludeRegions.Checked); CreateAndShowHeatMapSliders((int)sbHMAxesDivisionFactor.Value, rbIncludeRegions.Checked); if (showLabels) { CreateAndShowLabels(labels, HeatMapPanel, (int)sbHMAxesDivisionFactor.Value, desiredValueStart, desiredValueEnd, gbWorstTestCases); } sbWorstTestCasesNumber.Maximum = sbHMAxesDivisionFactor.Value * sbHMAxesDivisionFactor.Value; ccSettingsChnageListener.SettingsChanged(); }
private void cmbRequirements_SelectedIndexChanged(object sender, EventArgs e) { HeatMapLayout.CreateHeatMapLayoutDiagram(HeatMapPanel, ccTestWorkspace.ccSettings.heatMapDiagramDivisionFactor, heatMapDiagram, cmbRequirements.SelectedItem.ToString(), ccTestWorkspace.GetDesiredValueVariable().from, ccTestWorkspace.GetDesiredValueVariable().to, this); lvTestCases.Items.Clear(); if (worstTestCases.Keys.Contains(cmbRequirements.SelectedItem.ToString())) { for (int count = 0; count < worstTestCases[cmbRequirements.SelectedItem.ToString()].Count; ++count) { string[] items = new string[3]; items[0] = (count + 1).ToString(); items[1] = worstTestCases[cmbRequirements.SelectedItem.ToString()][count].initialDesired.ToString(); items[2] = worstTestCases[cmbRequirements.SelectedItem.ToString()][count].finalDesired.ToString(); ListViewItem listViewItem = new ListViewItem(items); lvTestCases.Items.Add(listViewItem); } } btnRunTestCase.Enabled = false; }