Inheritance: Common.Controls.BaseForm
コード例 #1
0
 private void panelCurve_Click(object sender, EventArgs e)
 {
     CurveEditor editor = new CurveEditor(CurveValue);
     if (editor.ShowDialog() == DialogResult.OK) {
         CurveValue = editor.Curve;
     }
 }
コード例 #2
0
        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);
            }
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: DimmingCurveHelper.cs プロジェクト: komby/vixen
 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;
         }
     }
 }