Esempio n. 1
0
        public override bool Output()
        {
            for (int i = 0; i < Driven.Length; i++)
            {
                Drivers[Name] = Driven[i](Drivers);
            }

            return(Drivers[Name]);
        }
Esempio n. 2
0
 public void Update()
 {
     if ((ActiveLow && !Drivers[ResetName]) || (!ActiveLow && Drivers[ResetName]))
     {
         Drivers[Name] = default;
     }
     else if ((PositiveLevel && Drivers[ClockName]) || (!PositiveLevel && Drivers[ClockName]))
     {
         for (int i = 0; i < Driven.Length; i++)
         {
             Drivers[Name] = Driven[i](Drivers);
         }
     }
 }
        public ActionResult DeleteConfirmed(int id)
        {
            Driven driven = db.Drivens.Find(id);

            db.Drivens.Remove(driven);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,CostumerReference,ClientUnit,VRN,DriverName,DriverLastName,Address1,Address2,City,State,ZIP")] Driven driven)
 {
     if (ModelState.IsValid)
     {
         db.Entry(driven).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(driven));
 }
    static void Main(string[] args)
    {
        var list = new Driven("Ragnarok");

        list.Items.Add(1);
        list.Items.Add(2);
        string json = JsonConvert.SerializeObject(list);

        Console.WriteLine(json);
        Console.ReadKey();
    }
        // GET: Drivens/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Driven driven = db.Drivens.Find(id);

            if (driven == null)
            {
                return(HttpNotFound());
            }
            return(View(driven));
        }
Esempio n. 7
0
 public void Generate(Driven.Metrics.Metrics.MetricResult result)
 {
     _results.Add(result);
 }