public void UISetRobot(GameObject m) { main = m; proc = main.GetComponent <processor> (); selectedRobot = main; Global.SelectedRobot = m; }
private void FormPBExcelShow_Load(object sender, EventArgs e) { p1 = new processor(SetFormSize); // 设置窗体的尺寸 p1.Invoke(); }
public ActionResult DeleteConfirmed(Guid id) { processor processor = db.processors.Find(id); db.processors.Remove(processor); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "GID,Name,Specs,Image,Manufacture")] processor processor) { var myrole = new Class1(); var userID = User.Identity.GetUserId(); ViewBag.currentrole = myrole.a(userID); if (ModelState.IsValid) { db.Entry(processor).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(processor)); }
static void Main(string[] args) { Console.WriteLine("Enter First Number"); var fn = Console.ReadLine(); Console.WriteLine("Enter second Number"); var sn = Console.ReadLine(); Console.WriteLine("Enter the operation. \n 0 for Add \n 1 for Substract \n 2 for multiply \n 3 for divide"); var operation = Console.ReadLine(); processor prc = new processor(Int32.Parse(operation)); prc.result(Int32.Parse(fn), Int32.Parse(sn)); }
public ActionResult Create([Bind(Include = "GID,Name,Specs,Image,Manufacture")] processor processor) { var myrole = new Class1(); var userID = User.Identity.GetUserId(); ViewBag.currentrole = myrole.a(userID); if (ModelState.IsValid) { processor.GID = Guid.NewGuid(); db.processors.Add(processor); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(processor)); }
public ActionResult Details(Guid?id) { var myrole = new Class1(); var userID = User.Identity.GetUserId(); ViewBag.currentrole = myrole.a(userID); if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } processor processor = db.processors.Find(id); if (processor == null) { return(HttpNotFound()); } return(View(processor)); }
void Start() { Scr = this.GetComponent <processor>().Scr; proc = this.GetComponent <processor> (); manager = GetComponent <BlockManager> (); }
//public ProcIOhandler IOHandler; void Start() { thisRobot = gameObject; proc = thisRobot.GetComponent <processor>(); //IOHandler = thisRobot.GetComponent<ProcIOhandler>(); }
void Start() { proc = main.GetComponent <processor> (); }