private void panelCurve_Click(object sender, EventArgs e) { CurveEditor editor = new CurveEditor(CurveValue); if (editor.ShowDialog() == DialogResult.OK) { CurveValue = editor.Curve; } }
private void buttonSetupCurve_Click(object sender, EventArgs e) { using (CurveEditor editor = new CurveEditor(_curve)) { if (editor.ShowDialog() == DialogResult.OK) { _curve = editor.Curve; buttonOk.Enabled = true; } } }
public override bool Setup() { using (CurveEditor editor = new CurveEditor(_data.Curve)) { if (editor.ShowDialog() == DialogResult.OK) { DimmingCurve = editor.Curve; _CreateOutputs(); return(true); } } return(false); }