Ejemplo n.º 1
0
 private void MoveSelectedObjects(int xDir, int yDir, bool smooth)
 {
     foreach (Base obj in Designer.SelectedObjects)
     {
         if (obj is ComponentBase && !(obj is PageBase))
         {
             ComponentBase c = obj as ComponentBase;
             c.Left += smooth ? xDir : xDir * Grid.SnapSize;
             c.Top  += smooth ? yDir : yDir * Grid.SnapSize;
             c.CheckParent(true);
         }
     }
     Refresh();
     Designer.SetModified(this, "Move");
 }