예제 #1
0
 private void ResizeSelectedObjects(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.Width  += smooth ? xDir : xDir * Grid.SnapSize;
             c.Height += smooth ? yDir : yDir * Grid.SnapSize;
             c.CheckNegativeSize(FEventArgs);
         }
     }
     Refresh();
     Designer.SetModified(this, "Size");
 }