Beispiel #1
0
 void Update()
 {
     if (sceneJustChanged)
     {
         sceneJustChanged = false;
         Z             = GameObject.Find("ZoneText").GetComponent <Zoning>();
         Z.displayText = true;
     }
 }
 public ActionResult ZONING(int id)
 {
     using (MyDatabaseEntities de = new MyDatabaseEntities())
     {
         var    con    = de.Configs.Where(a => a.ProjectID == id).FirstOrDefault();
         Zoning zoning = new Zoning();
         zoning.config = con;
         zoning.Populate();
         var      path  = Path.Combine(Server.MapPath("~/Content/Zoning"));
         string[] files = Directory.GetFiles(path);
         foreach (string file in files)
         {
             var filename  = Path.GetFileName(file).ToString();
             var extension = Path.GetExtension(file);
             if (filename.Replace(extension, "") == id.ToString())
             {
                 zoning.ZoningFile = "/Content/Zoning/" + filename;
             }
         }
         return(View(zoning));
     }
 }
        public List <Zoning> getZoning(int level = 0, int dependentId = 0)
        {
            List <Zoning> lz = Zoning.GetZoning(level, dependentId);

            return(lz);
        }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LlConsole.Location"/> class.
 /// </summary>
 /// <param name="zone">The kind of property.</param>
 /// <param name="propertyName">The name of the property.</param>
 /// <param name="leftCoord">Left coordinate.</param>
 /// <param name="rightCoord">Right coordinate.</param>
 /// <param name="topCoord">Top coordinate.</param>
 /// <param name="bottomCoord">Bottom coordinate.</param>
 /// <param name="sale">Sale price.</param>
 /// <param name="rent">Rental price.</param>
 public Location(
                 Zoning zone,
                 string propertyName,
                 int leftCoord,
                 int rightCoord,
                 int topCoord,
                 int bottomCoord,
                 int sale,
                 int rent)
 {
     this.propertyType = zone;
                 this.name = propertyName;
                 this.SetLeft(leftCoord);
                 this.SetRight(rightCoord);
                 this.SetTop(topCoord);
                 this.SetBottom(bottomCoord);
                 this.priceSale = sale;
                 this.priceRent = rent;
 }