Ejemplo n.º 1
0
        public MainForm()
        {
            //contructor
            InitializeComponent();

            //zet de curve-keuzelijst op beginkeuze
            //en initialiseerd de Curve als een curve van die soort
            chLCurveChoise.SelectedIndex = 0;
            strPointAmount = "PointAmount/Degree: ";
            Curve = new RecursiveBezier();
        }
Ejemplo n.º 2
0
 private void chLCurveChoise_SelectedIndexChanged(object sender, EventArgs e)
 {
     //veranderd de curve van soort als de keuzelijst-selectie veranderd.
     switch (chLCurveChoise.SelectedIndex)
     {
         case 0:
             Curve = new RecursiveBezier();
             knotControl1.Visible = false;
             strPointAmount = "PointAmount/Degree: ";
             break;
         case 1:
             Curve = new MathBezier();
             knotControl1.Visible = false;
             strPointAmount = "PointAmount/Degree: ";
             break;
         case 2:
             Curve = new BSpline(knotControl1);
             knotControl1.Visible = true;
             strPointAmount = "PointAmount: ";
             break;
     }
     lblPointAmount.Text = strPointAmount + Curve.PointAmount;
     Refresh();
 }