private void tsiOptions_Click(object sender, EventArgs e)
        {
            // Get current tab as spline tab
            SplineTab tab = splineTabs.SelectedTab as SplineTab;

            // Create the new options form
            OptionsPrompt pr = new OptionsPrompt(tab.Radius, tab.Thickness);

            // Show the prompt
            pr.ShowDialog();

            // Were the option changes confirmed?
            if (pr.DialogResult == DialogResult.OK)
            {
                // Set the tabs variables
                tab.Radius    = pr.Radius;
                tab.Thickness = pr.Thickness;

                // Invalide the tab
                tab.Invalidate();
            }

            // Dispose of the prompt
            pr.Dispose();
        }
        private void btnHermiteMode_Click(object sender, EventArgs e)
        {
            // Get current tab as a spline tab
            SplineTab tab = splineTabs.SelectedTab as SplineTab;

            // Assure this tab isn't null
            if (tab != null)
            {
                // Set this tab to hermite mode
                tab.BezierMode = false;

                // Invalide the tabs graphics
                tab.Invalidate();

                // Switch enabled buttons
                btnHermiteMode.Enabled = false;
                btnBezierMode.Enabled  = true;
            }
        }