private void CameraMove(object sender, SplineEventArgs e) { // Get the sender as a spline tab SplineTab tab = sender as SplineTab; // Assure tab isn't null if (tab != null) { // Set cameras position into textboxes nudCamX.Value = (decimal)tab.Camera.x; nudCamY.Value = (decimal)tab.Camera.y; } }
private void Knot_Insert_Remove(object sender, SplineEventArgs e) { // Get the sender as a spline tab SplineTab tab = sender as SplineTab; // Assure tab isn't null if (tab != null) { // Set maximum value of timer to splines segments nudTimer.Maximum = tab.Segments(); // Set timers value nudTimer.Value = (decimal)tab.InterpolationTime; } }