Esempio n. 1
0
        public void BuildResultList(List <mars_MTeams> teamList)
        {
            if (Staevne == null || Staevne.Ovelser == null || Staevne.Ovelser.Length != 1)
            {
                return;
            }

            Ovelse ov = Staevne.Ovelser[0];

            if (ov.Heats == null)
            {
                return;
            }

            if (StateText.StartsWith("N"))
            {
                return;
            }

            if (StateText.StartsWith("O") && !ov.LobeOvelse)
            {
                doBuildOngoingResultList(ov, teamList);
            }
            else if (ov.FindesResultat)
            {
                doBuildResultList(ov, teamList);
            }
        }
Esempio n. 2
0
    public void UpdateState()
    {
        GameObject txtObj = Instantiate(_textPrefab, _holder);

        _txt = txtObj.GetComponent <StateText>();
        _txt.SetStateText(_player.State, _player.CurrentColor);
        Destroy(txtObj, lifeTime);
    }
Esempio n. 3
0
 public ActionResult Edit(CityModel cityModel)
 {
     if (ModelState.IsValid)
     {
         State sta = db.States.Find(cityModel.City.state_id);
         db.Entry(sta).State = EntityState.Modified;
         sta.Status          = cityModel.City.Status;
         sta.stateCode       = cityModel.City.stateCode;
         StateText stateText = (from data in db.StateTexts where data.id == cityModel.CityText.id && data.language_id == "vi" select data).ToList().FirstOrDefault();
         db.Entry(stateText).State = EntityState.Modified;
         stateText.text            = cityModel.CityText.text;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(cityModel));
 }