Inheritance: Common.Controls.BaseForm
 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);
            }
        }
Exemple #3
0
 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;
         }
     }
 }