public RectPanel(Size MapSize, MapRectangle3D rect) { m_Updating = true; // This call is required by the Windows.Forms Form Designer. InitializeComponent(); m_MapSize = MapSize; NumX.Maximum = MapSize.Width; NumY.Maximum = MapSize.Height; NumWidth.Maximum = MapSize.Width; NumHeight.Maximum = MapSize.Height; m_X = rect.Rectangle.X; NumX.Value = rect.Rectangle.X; m_Y = rect.Rectangle.Y; NumY.Value = rect.Rectangle.Y; m_Width = rect.Rectangle.Width; NumWidth.Value = rect.Rectangle.Width; m_Height = rect.Rectangle.Height; NumHeight.Value = rect.Rectangle.Height; NumMinZ.Value = rect.MinZ; m_MinZ = rect.MinZ; NumMaxZ.Value = rect.MaxZ; m_MaxZ = rect.MaxZ; m_Updating = false; }
public int AddArea(MapRectangle3D rectangle) { return(m_Area.Add(new MapRect(rectangle.Rectangle, rectangle.MinZ, rectangle.MaxZ))); }