private void panelCurve_Click(object sender, EventArgs e) { CurveEditor editor = new CurveEditor(CurveValue); if (editor.ShowDialog() == DialogResult.OK) { CurveValue = editor.Curve; } }
public override void Setup() { if (_data == null) { VixenSystem.Logging.Warning("DimmingCurve: Null Data object when trying to Setup()."); return; } CurveEditor editor = new CurveEditor(_data.Curve); if (editor.ShowDialog() == DialogResult.OK) { _data.Curve = new CachingCurve(editor.Curve); } }
public bool EditLibraryCurve(string name) { Curve curve = GetCurve(name); if (curve == null) { return(false); } CurveEditor editor = new CurveEditor(curve); editor.LibraryCurveName = name; if (editor.ShowDialog() == System.Windows.Forms.DialogResult.OK) { _RemoveCurve(name); AddCurve(name, editor.Curve); return(true); } return(false); }
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; } } }