public CState0(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { tm = new Timer(); tm.Interval = 1000; tm.Tick += new EventHandler(tm_Tick); }
private bool lkxian8; //代表离开了线8 public CState7(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { //stopmark = false; tm = new Timer(); tm.Tick += new EventHandler(Timerfun); }
private Timer tm3; //T3延时 public CState8(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { tm = new Timer(); tm.Tick += new EventHandler(Timerfun); tm3 = new Timer(); tm3.Tick += new EventHandler(Timerfun); }
private void buttonItem2_Click(object sender, EventArgs e) { displaycomm.Close(); ExamForm examform1 = new ExamForm(1, false); examform1.ShowDialog(); examform1.Dispose(); initDisplay(); }
protected static int jinku_line;//判断进库的方向(压2线进库还是压1线进库),2为压2线,1为压1线 public CState(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm examform) { gan = ganc; xian = xianc; che = chec; eform = examform; stopcount = 0; jinku_line = 2; }
public CState14(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { tm = new Timer(); tm.Tick += new EventHandler(Timerfun); checkQJtm4 = new Timer(); checkQJtm4.Tick += new EventHandler(checkQianJinByXian4); checkQJtm7 = new Timer(); checkQJtm7.Tick += new EventHandler(checkQianJinByXian7); }
public StateManager(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) { StateList = new Hashtable(); State0 = new CState0(ganc, xianc, chec, eform); StateList.Add("State0", State0); State1 = new CState1(ganc, xianc, chec, eform); StateList.Add("State1", State1); State2 = new CState2(ganc, xianc, chec, eform); StateList.Add("State2", State2); State3 = new CState3(ganc, xianc, chec, eform); StateList.Add("State3", State3); State4 = new CState4(ganc, xianc, chec, eform); StateList.Add("State4", State4); State4i = new CState4i(ganc, xianc, chec, eform); StateList.Add("State4i", State4i); State5 = new CState5(ganc, xianc, chec, eform); StateList.Add("State5", State5); State6 = new CState6(ganc, xianc, chec, eform); StateList.Add("State6", State6); State7 = new CState7(ganc, xianc, chec, eform); StateList.Add("State7", State7); State8 = new CState8(ganc, xianc, chec, eform); StateList.Add("State8", State8); State9 = new CState9(ganc, xianc, chec, eform); StateList.Add("State9", State9); State10 = new CState10(ganc, xianc, chec, eform); StateList.Add("State10", State10); State11 = new CState11(ganc, xianc, chec, eform); StateList.Add("State11", State11); State11i = new CState11i(ganc, xianc, chec, eform); StateList.Add("State11i", State11i); State12 = new CState12(ganc, xianc, chec, eform); StateList.Add("State12", State12); State13 = new CState13(ganc, xianc, chec, eform); StateList.Add("State13", State13); State14 = new CState14(ganc, xianc, chec, eform); StateList.Add("State14", State14); State14i = new CState14i(ganc, xianc, chec, eform); StateList.Add("State14i", State14i); State15 = new CState15(ganc, xianc, chec, eform); StateList.Add("State15", State15); State16 = new CState16(ganc, xianc, chec, eform); StateList.Add("State16", State16); State17 = new CState17(ganc, xianc, chec, eform); StateList.Add("State17", State17); StateEnd = new CStateEnd(ganc, xianc, chec, eform); StateList.Add("StateEnd", StateEnd); CurrState = State1; }
private Timer tm7, tm8, tm2; //, tm4; public CState8(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { tm7 = new Timer(); tm7.Interval = 500; tm7.Tick += new EventHandler(onTm7); tm2 = new Timer(); tm2.Interval = 500; tm2.Tick += new EventHandler(onTm2); tm8 = new Timer(); tm8.Interval = 500; tm8.Tick += new EventHandler(onTm8); //tm4 = new Timer(); //tm4.Interval = 500; //tm4.Tick += new EventHandler(onTm4); }
public CState9(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { }
public CState12(CGanFairy[] ganc, CLineFairy[] xianc, CBmpFairy chec, ExamForm eform) : base(ganc, xianc, chec, eform) { stopmark = false; }