示例#1
0
文件: CurvesEditor.cs 项目: rAum/mmgk
        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;
        }
示例#2
0
文件: Model.cs 项目: rAum/mmgk
 public ModelChangeEventArgs(Model.Spline spline_, int point_)
 {
     spline = spline_;
     point = point_;
 }