private void button1_Click(object sender, EventArgs e) { ColorDialog dlg = new ColorDialog(); if (dlg.ShowDialog() == DialogResult.OK) { if (!listBox1.Items.Contains(textBox1.Text)) { PlotterFunctions.colours.Add(textBox1.Text, dlg.Color); loadList(); PlotterFunctions.saver(configFileName); PlotterFunctions.loader(configFileName); PlotterFunctions.reloadColours(); } else { PlotterFunctions.colours.Remove(textBox1.Text); PlotterFunctions.colours.Add(textBox1.Text, dlg.Color); loadList(); PlotterFunctions.saver(configFileName); PlotterFunctions.loader(configFileName); PlotterFunctions.reloadColours(); } } }
private void diameterDecimal_ValueChanged(object sender, EventArgs e) { PlotterFunctions.diameter = PlotterFunctions.changeDiameter(DiameterMain.Value, DiameterDecimal.Value); if (!PlotterFunctions.settingNumerics) { PlotterFunctions.saver(ConfigFileName); } }
private void button2_Click(object sender, EventArgs e) { PlotterFunctions.colours.Remove(listBox1.SelectedItem.ToString()); loadList(); PlotterFunctions.saver(configFileName); PlotterFunctions.loader(configFileName); PlotterFunctions.reloadColours(); }