Exemplo n.º 1
0
		private void EndShapeResizing(object sender, ResizeEventArgs e)
		{
			foreach (BendPoint bendPoint in bendPoints.GetReversedList())
			{
				if (bendPoint.RelativeToStartShape)
					break;
				bendPoint.ShapeResized(e.Change);
			}
			
			Reroute();
			OnRouteChanged(EventArgs.Empty);
			OnModified(EventArgs.Empty);
		}
Exemplo n.º 2
0
 protected virtual void OnResize(ResizeEventArgs e)
 {
     if (Resize != null)
         Resize(this, e);
 }
Exemplo n.º 3
0
		protected override void OnResize(ResizeEventArgs e)
		{
			base.OnResize(e);
			if (editorShowed)
			{
				editor.Relocate(this);
				if (!editor.Focused)
					editor.Focus();
			}
		}
Exemplo n.º 4
0
        private void PerformResize(PointF mouseLocation)
        {
            Size change = Size.Empty;

            if ((resizeMode & ResizeMode.Right) != 0)
            {
                int offset = (int)(mouseLocation.X - mouseDownLocation.X);
                change.Width += offset;
            }
            if ((resizeMode & ResizeMode.Bottom) != 0)
            {
                int offset = (int)(mouseLocation.Y - mouseDownLocation.Y);
                change.Height += offset;
            }

            ResizeEventArgs e = new ResizeEventArgs(change);
            OnResizing(e);
            Size += e.Change;
        }
Exemplo n.º 5
0
        protected override void OnResize(ResizeEventArgs e)
        {
            base.OnResize(e);

            EditorWindow window = GetEditorWindow();
            if (window != null)
                window.Relocate(this);
        }