Ejemplo n.º 1
0
 private void UpdateMarginBoxes()
 {
     changingRect = true;
     // If we assign values that are out-of-range to the controls, we'll get an exception.
     this.Bounds1.Value = DreamTools.ForceToRange(Bounds1.Minimum, Bounds1.Maximum, (decimal)imagePanel.RectPosition.Left);
     this.Bounds2.Value = DreamTools.ForceToRange(Bounds2.Minimum, Bounds2.Maximum, (decimal)imagePanel.RectPosition.Top);
     this.Bounds3.Value = DreamTools.ForceToRange(Bounds3.Minimum, Bounds3.Maximum, (decimal)(100F - imagePanel.RectPosition.Right));
     this.Bounds4.Value = DreamTools.ForceToRange(Bounds4.Minimum, Bounds4.Maximum, (decimal)(100F - imagePanel.RectPosition.Bottom));
     changingRect       = true;
 }