Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     MainTest main = new MainTest();
     main.init();
     main.pushRecordButton();
     Console.ReadLine();
 }
Ejemplo n.º 2
0
        public ActionResult DeleteConfirmed(int id)
        {
            MainTest mainTest = db.MainTests.Find(id);

            db.MainTests.Remove(mainTest);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "MainTestId,TestMasterId,SubTestMasterId,MainTestName,Units,Price")] MainTest mainTest)
 {
     if (ModelState.IsValid)
     {
         db.Entry(mainTest).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.SubTestMasterId = new SelectList(db.SubTestMasters, "SubTestMasterId", "SubTestName", mainTest.SubTestMasterId);
     ViewBag.TestMasterId    = new SelectList(db.TestMasters, "TestMasterId", "TestMasterName", mainTest.TestMasterId);
     return(View(mainTest));
 }
Ejemplo n.º 4
0
        // GET: MainTests/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MainTest mainTest = db.MainTests.Find(id);

            if (mainTest == null)
            {
                return(HttpNotFound());
            }
            return(View(mainTest));
        }
Ejemplo n.º 5
0
        // GET: MainTests/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MainTest mainTest = db.MainTests.Find(id);

            if (mainTest == null)
            {
                return(HttpNotFound());
            }
            ViewBag.SubTestMasterId = new SelectList(db.SubTestMasters, "SubTestMasterId", "SubTestName", mainTest.SubTestMasterId);
            ViewBag.TestMasterId    = new SelectList(db.TestMasters, "TestMasterId", "TestMasterName", mainTest.TestMasterId);
            return(View(mainTest));
        }
Ejemplo n.º 6
0
 public void SetupNN()
 {
     test = new MainTest();
     test.defaultSetup();
 }
Ejemplo n.º 7
0
 static void Main(string[] args)
 {
     MainTest.Run();
 }
Ejemplo n.º 8
0
 public float RunNN()
 {
     MainTest t = new MainTest();
     Console.WriteLine(t.Run());
 }
Ejemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     theCamera = GameObject.Find("Main Camera");
     distance  = (theCamera.transform.position - new Vector3(0, 0, 0)).magnitude;
     mainTest  = GameObject.Find("Main Camera").GetComponent <MainTest>();
 }