public uctlNewVehicle(AVEHICLE _vh, uctl_Map uctl_Map, PictureBox alarmStatus, PictureBox cstloadStatus) { InitializeComponent(); // this.Size = Resources.Vehicle__Unconnected_.Size; Uctl_Map = uctl_Map; vh = _vh; this.Width = this.Width / icon_scale; this.Height = this.Height / icon_scale; this.Left = this.Width / 2; this.Top = this.Height / 2; PicAlarmStatus = alarmStatus; PicCSTLoadStatus = cstloadStatus; PicAlarmStatus.Size = new Size(Resources.Alarm__Error_.Width / icon_scale, Resources.Alarm__Error_.Height / icon_scale); PicCSTLoadStatus.Size = new Size(Resources.Action__Cassette_.Size.Width / icon_scale, Resources.Action__Cassette_.Size.Height / icon_scale); font = new System.Drawing.Font("Consolas", 20F / icon_scale, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); font_Numbering = new System.Drawing.Font("Arial", 28F / icon_scale, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); PicAlarmStatus.VisibleChanged += PicAlarmStatus_VisibleChanged; PicCSTLoadStatus.VisibleChanged += PicCSTLoadStatus_VisibleChanged; this.BackColor = Color.FromArgb(29, 36, 60); registerEvent(); _SetInitialVhToolTip(); _SetRailToolTip(); }
//public uctlVehicle(Equipment eqpt, uctl_Map _uctl_Map) public uctlVehicle(AVEHICLE eqpt, uctl_Map _uctl_Map) { InitializeComponent(); bcApp = BCApplication.getInstance(); this.eqpt = eqpt; this.Uctl_Map = _uctl_Map; m_iVhPt = -1; m_iNum = 0; this.p_Status = E_MAP_VHSTS.enDisconnect; this.p_Presence = false; //registerEvent(); _SetInitialRailToolTip(); _SetRailToolTip(); }
public uctlAddress(uctl_Map _uctl_Map) { InitializeComponent(); Uctl_Map = _uctl_Map; m_sAddress = "0000"; m_iLocX = 0; m_iLocY = 0; m_clrColor = Color.WhiteSmoke; _SetInitialAddrToolTip(); _SetAddrToolTip(); this.Width = 8; this.Height = 8; }