public DigitalVoltmeterForm() { InitializeComponent(); InitializeDataGrid(); expandingForm = new GraphExpandingForm(); errorFont = new Font(dataGridViewVect.Font, FontStyle.Bold); word = new WordTools(progressBar); }
private void buttonExpand_Click(object sender, EventArgs e) { if (modelVoltages == null) { MessageBox.Show("First generate the data!"); return; } if (!expandingForm.Visible) { expandingForm = new GraphExpandingForm(); expandingForm.Chart.Series.Clear(); VoltageChartService chartService = new VoltageChartService(expandingForm.Chart, "Входное напряжение", voltagesQuantumStep); chartService.AddInputVoltageList("Voltages", modelVoltages, modelVoltageColor, 2); chartService.AddInputVoltageList("Ideal voltages", idealVoltages, idealVoltageColor, 2); expandingForm.Show(); } }