public My_KLUB_U_Controller(KLUB_U klub_u) : base(klub_u) { klub_u.OnTrainModeIndicator(); inputNumberTool = new InputNumderTool(); inputInfoMode = false; inputInfoParametr = 0; inputCommandMode = false; }
/* Constructor */ public KLUB_U_Conroller(KLUB_U klub_u) { Klub_u = klub_u; ActualSpeed = 0; AllowableSpeed = 100; Acceleration = 0; MovingMode = 1; Frequency = 50; Info = ""; Coordinate = 0; TrainParametrs = new Int32[] { 0, 0, 0, 0, 0 }; // 8 - white blink // 7 - green4 // 6 - green3 // 5 - green2 // 4 - green1 // 3 - yellow // 2 - yellow red // 1 - red // 0 - white Trafficlights = new bool[] { false, false, false, false, false, false, false, false, false }; ManualTrafficlightControl = false; ManualCoordinateControl = false; PathNumber = 1; CorrectPath = true; klub_u.SetActualSpeed(ActualSpeed); klub_u.SetAllowableSpeed(AllowableSpeed); klub_u.SetCoordinate(Coordinate); klub_u.SetStarion(""); klub_u.SetTime("12.34.51"); klub_u.SetTimeOnSchedule("13.00.00"); Klub_u.SetPressureTM((float)0.01); Klub_u.SetPressureUR((float)0.23); klub_u.SetFrequency(Frequency); Klub_u.SetPathNumber(PathNumber, CorrectPath); Klub_u.SetAcceleration(Acceleration); Klub_u.OnMainPathIndicator(); }