Beispiel #1
0
        public CurvesEditor(MainForm mainForm, Model.Spline curve_)
        {
            InitializeComponent();
            this.parent = mainForm;
            this.curve = curve_;
            switch (curve)
            {
            case Model.Spline.P0: this.Text = "Krzywa P_0"; break;
            case Model.Spline.P1: this.Text = "Krzywa P_1"; break;
            case Model.Spline.Q0: this.Text = "Krzywa Q_0"; break;
            case Model.Spline.Q1: this.Text = "Krzywa Q_1"; break;
                default:
                Close();
                break;
            }

            bindingSource.DataSource = parent.CoonsPatch.GetSpline(curve);
            ready = true;
        }
Beispiel #2
0
 public ModelChangeEventArgs(Model.Spline spline_, int point_)
 {
     spline = spline_;
     point = point_;
 }