Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public void IncludeItem(BHSeatControl bh)
 {
     if (!this.ExistControlInList(bh))
     {
         bh.CursorSelectedIt = true;
         this._listControlSelect.Add(bh);
     }
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 public SelectOneSeat_Events(BHSeatControl bhSeat)
 {
     this.m_bhSeat = bhSeat;
 }
Esempio n. 6
0
 public RMSelectOneSeat_Events(BHSeatControl bhSeat, int _nX, int _nY)
 {
     this.m_bhSeat = bhSeat;
     this.m_nX     = _nX;
     this.m_nY     = _nY;
 }