public bool SetSelectItemsStatus_One(BHSeatControl bh, BHSeatControl.BHSeatStatus bhSeatStatus) { bool result; if (this._listControlSelect.Count <= 0) { result = false; } else { foreach (Control current in this._listControlSelect) { if (bh.Name == current.Name) { ((BHSeatControl)current).SeatStatus = bhSeatStatus; Seat seat = (Seat)current.Tag; seat._seatStatusFlag = EditSeatItem.GetControlStatus_ByFlag(bhSeatStatus); current.Tag = seat; ((BHSeatControl)current).ExtendImage = (((BHSeatControl)current).DispImageMode ? EditSeatItem.GetControlExtendImg(seat._seatStatusFlag) : null); result = true; return(result); } } result = false; } return(result); }
public bool SetSelectItemsType_One(BHSeatControl bh, BHSeatControl.BHSeatType bhSeatType) { bool result; if (this._listControlSelect.Count <= 0) { result = false; } else { foreach (Control current in this._listControlSelect) { if (bh.Name == current.Name) { ((BHSeatControl)current).SeatType = bhSeatType; Seat seat = (Seat)current.Tag; seat._seatFlag = EditSeatItem.GetString_ByControlFlag(bhSeatType); current.Tag = seat; ((BHSeatControl)current).Image = (((BHSeatControl)current).DispImageMode ? EditSeatItem.GetControlImg(seat._seatFlag) : null); result = true; return(result); } } result = false; } return(result); }
public void IncludeItem(BHSeatControl bh) { if (!this.ExistControlInList(bh)) { bh.CursorSelectedIt = true; this._listControlSelect.Add(bh); } }
public void ExcludeItem(BHSeatControl bh) { foreach (Control current in this._listControlSelect) { if (bh.Name == current.Name) { this._listControlSelect.Remove(current); bh.CursorSelectedIt = false; return; } } bh.CursorSelectedIt = false; }
public SelectOneSeat_Events(BHSeatControl bhSeat) { this.m_bhSeat = bhSeat; }
public RMSelectOneSeat_Events(BHSeatControl bhSeat, int _nX, int _nY) { this.m_bhSeat = bhSeat; this.m_nX = _nX; this.m_nY = _nY; }