void PosTransUnitValueChanged(object sender, ValueChangedEventArgs e) { TransArm.Angle = (float)e.Value; NxtControl.Drawing.PointF newPos = vacum.Location; newPos.X = (477 + (double)((Math.Cos((float)e.Value * Math.PI / 180)) * 170.0)) - 11; newPos.Y = 196 - (double)((Math.Sin((float)e.Value * Math.PI / 180)) * 170.0); vacum.Location = newPos; }
void Wp6YValueChanged(object sender, ValueChangedEventArgs e) { NxtControl.Drawing.PointF newPos = wp6.Location; newPos.Y = (double)(float)e.Value; wp6.Location = newPos; }
void PosPusherValueChanged(object sender, ValueChangedEventArgs e) { NxtControl.Drawing.PointF newPos = pusher.Location; newPos.X = (double)((float)e.Value + 137.0); pusher.Location = newPos; }