Example #1
0
 public WallBeam(Point ubicationPoint)
 {
     this.gridRepository      = new GridRepository();
     this.priceAndCostHandler = new PriceAndCostHandler(gridRepository);
     this.UbicationPoint      = ubicationPoint;
     this.wallBeamBrush       = new SolidBrush(Color.Red);
 }
Example #2
0
 public DecorativeColumn(Point ubicationPoint)
 {
     this.gridRepository      = new GridRepository();
     this.priceAndCostHandler = new PriceAndCostHandler(gridRepository);
     this.UbicationPoint      = ubicationPoint;
     this.wallBeamBrush       = new SolidBrush(Color.Gold);
     this.width = 0.50f;
 }
Example #3
0
 public NewOpeningForm(GridRepository repository, User user)
 {
     InitializeComponent();
     this._repository            = repository;
     this.priceAndCostHandler    = new PriceAndCostHandler(this._repository);
     this.generatedDoorHandler   = new GeneratedDoorHandler();
     this.generatedWindowHandler = new GeneratedWindowHandler();
     this.user = user;
 }
        public ConfigurationPrice()
        {
            this.gridRepository = new GridRepository();
            priceAndCostHandler = new PriceAndCostHandler(gridRepository);
            InitializeComponent();

            this.AccessibleName = "Precios";
            this.titleTxt.Text  = "Configuracion de Precios";
        }
Example #5
0
        public Wall(Point startPoint, Point endPoint)
        {
            this.gridRepository      = new GridRepository();
            this.priceAndCostHandler = new PriceAndCostHandler(gridRepository);
            SetRightSense(startPoint, endPoint);
            this.Path    = new List <Point>();
            this.wallPen = new Pen(Color.LightGreen, 4);
            this.createPath();


            this.PriceAndCost = priceAndCostHandler.GetPriceAndCostWall();
        }
Example #6
0
 public Door(Point startPoint, Point endPoint, string sense, float width, float high, string name)
 {
     this.gridRepository      = new GridRepository();
     this.priceAndCostHandler = new PriceAndCostHandler(gridRepository);
     this.Width      = width;
     this.Height     = high;
     this.Name       = name;
     this.sense      = sense;
     this.direction  = 0;
     this.StartPoint = startPoint;
     this.EndPoint   = endPoint;
 }
Example #7
0
 public Window(Point startPoint, Point endPoint, string sense, float width, float high, float distanceFromGround, string name)
 {
     this.distanceFromGround  = distanceFromGround;
     this.gridRepository      = new GridRepository();
     this.priceAndCostHandler = new PriceAndCostHandler(gridRepository);
     this.blueBrush           = new SolidBrush(Color.Blue);
     this.width      = width;
     this.high       = high;
     this.name       = name;
     this.sense      = sense;
     this.StartPoint = startPoint;
     this.EndPoint   = endPoint;
 }
Example #8
0
        public Grid(string gridName, Client client, int height, int width)
        {
            this.isDeleted         = false;
            this.gridRepository    = new GridRepository();
            this.Walls             = new List <Wall>();
            this.WallBeams         = new List <WallBeam>();
            this.DecorativeColumns = new List <DecorativeColumn>();
            this.Windows           = new List <Window>();
            this.Doors             = new List <Door>();

            this.GridName = gridName;
            this.Client   = client;
            this.Height   = height * PixelConvertor;
            this.Width    = width * PixelConvertor;
            this.PRICE_AND_COST_HANDLER   = new PriceAndCostHandler(gridRepository);
            this.GRID_HANDLER             = new GridHandler();
            this.WALLBEAM_HANDLER         = new WallBeamHandler(gridRepository);
            this.WALL_HANDLER             = new WallHandler(gridRepository);
            this.WINDOW_HANDLER           = new WindowHandler(gridRepository);
            this.DECORATIVECOLUMN_HANDLER = new DecorativeColumnHandler(gridRepository);
            this.DOOR_HANDLER             = new DoorHandler(gridRepository);
        }
Example #9
0
 public Grid()
 {
     this.isDeleted              = false;
     this.gridRepository         = new GridRepository();
     this.PRICE_AND_COST_HANDLER = new PriceAndCostHandler(gridRepository);
 }