static void Main(string[] args) { MainTest main = new MainTest(); main.init(); main.pushRecordButton(); Console.ReadLine(); }
public ActionResult DeleteConfirmed(int id) { MainTest mainTest = db.MainTests.Find(id); db.MainTests.Remove(mainTest); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
// 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)); }
// 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)); }
public void SetupNN() { test = new MainTest(); test.defaultSetup(); }
static void Main(string[] args) { MainTest.Run(); }
public float RunNN() { MainTest t = new MainTest(); Console.WriteLine(t.Run()); }
// 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>(); }