Esempio n. 1
0
        public IActionResult AddEnvironment(Environmental environmental)
        {
            var site = _context.ResearchSite.Where(r => r.SiteId == environmental.SiteId).SingleOrDefault();

            environmental.SiteName = site.SiteName;

            _context.Environmental.Add(environmental);
            _context.SaveChanges();

            return(RedirectToAction("Index", "Researchers"));
        }
Esempio n. 2
0
        public IHttpActionResult GetEnvironmental()
        {
            Environmental environmental = db.Environmentals.OrderByDescending(e => e.id).FirstOrDefault();

            if (environmental == null)
            {
                return(NotFound());
            }

            return(Ok(environmental));
        }
Esempio n. 3
0
 /// <summary>
 /// Clears the Forms in the Property Form Fields
 /// </summary>
 private void ClearPropertyForm()
 {
     landAcquisitionCost.Clear();
     AcquisitionLeasing.Clear();
     Syndication.Clear();
     LandTransfer.Clear();
     LegalPurchaseLease.Clear();
     Environmental.Clear();
     Contigency.Clear();
     Mortgage.Clear();
     Construction.Clear();
     Appraisal.Clear();
     BCR.Clear();
     MortgageLTV.Clear();
     Interest25.Clear();
     AnnualDebt.Clear();
 }
Esempio n. 4
0
    void Awake()
    {
        Key         = GameObject.Find("Key");
        Gun         = GameObject.Find("Gun");
        Gloves      = GameObject.Find("Gloves");
        Rock        = GameObject.Find("Rock");
        Head        = GameObject.Find("Head");
        Lung        = GameObject.Find("Lung");
        Heart       = GameObject.Find("Heart");
        Brain       = GameObject.Find("Brain");
        Ticket      = GameObject.Find("Ticket");
        Poison      = GameObject.Find("Poison");
        ElevatorKey = GameObject.Find("ElevatorKey");

        environment = GameObject.Find("Environment").GetComponent <Environmental> ();
        inventory   = GetComponent <Inventory>();
    }
Esempio n. 5
0
    void Start()
    {
        oldMan           = GameObject.Find("OldMan");
        hG               = GameObject.Find("HospitalGirl");
        eyesHere         = GameObject.Find("EyesHere");
        cam              = GameObject.Find("Main Camera");
        activationSwitch = GameObject.Find("Activation Switch");

        tr          = transform;
        enemyDamage = GameObject.Find("HospitalGirl").GetComponent <HospitalGirl> ();
        wander      = GameObject.Find("OldMan").GetComponent <Wander> ();
        inventory   = GetComponent <Inventory> ();
        environment = GameObject.Find("Environment").GetComponent <Environmental>();
        collect     = GameObject.Find("First Person Controller").GetComponent <CollectItem> ();
        chMotor     = GetComponent <CharacterMotorC>();
        ch          = GetComponent <CharacterController>();
        dist        = ch.height / 2; // calculate distance to ground
    }
 public EnviromentalViewModel(ISource <Environmental> source)
 {
     Source           = source;
     Source.OnChange += (Environmental value) => Environmental = value;
 }
Esempio n. 7
0
 private void OnChange(Environmental value) => Environmental = value;