Exemplo n.º 1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (RoomPlanner r = new RoomPlanner())
     {
         Application.Run(r);
     }
 }
Exemplo n.º 2
0
        public bool IsInWall(Point p)
        {
            if (!IsWall)
            {
                return(false);
            }

            Point[] one = new Point[] { RoomPlanner.Minus(p, Center) };
            using (Matrix m = new Matrix())
            {
                m.Rotate(-Angle);
                m.TransformPoints(one);
            }

            return(wall.IsOutlineVisible(one[0], RoomPlanner.wallPen));
        }