Example #1
0
        public QueueAlertItem Copy()
        {
            QueueAlertItem item = new QueueAlertItem();

            item.FromTo(this);
            return(item);
        }
Example #2
0
        private void InitSession()
        {
            if (_signs == null)
            {
                _signs = new List <LiveSign>();
            }

            if (_categories == null)
            {
                _categories = new List <string>();
            }

            if (_lstHotButton == null)
            {
                _lstHotButton = new List <HotButtonItemInfo>();
            }


            if (_changedService == null)
            {
                _changedService = new ChangedService();
            }

            if (_greenAlert == null)
            {
                _greenAlert       = new QueueAlertItem();
                _greenAlert.Level = QueueAlertLevel.Green;
            }

            if (_yellowAlert == null)
            {
                _yellowAlert       = new QueueAlertItem();
                _yellowAlert.Level = QueueAlertLevel.Yellow;
            }

            if (_redAlert == null)
            {
                _redAlert       = new QueueAlertItem();
                _redAlert.Level = QueueAlertLevel.Bottom;
            }

            MessageBus.Subject <SessionChangeMessage>().Observers += new System.Communication.Messaging.ObserverHandler <SessionChangeMessage>(SessionInfo_Observers);
        }
Example #3
0
        /// <summary>
        /// Function: Get data from a object to current object
        /// Author  : Jerry Xu
        /// Date    : 2008-7-8
        /// </summary>
        /// <param name="memory">MemoryLibraryItem</param>
        public void FromTo(SessionInfo memory)
        {
            this.Id                = memory.Id;
            this.Name              = memory.Name;
            this._isActive         = memory._isActive;
            this._isNail           = memory._isNail;
            this._isVisibleCounter = memory._isVisibleCounter;
            this._isNew            = memory._isNew;
            this._autoQueueCounter = memory._autoQueueCounter;

            if (memory._signs != null && memory._signs.Count > 0)
            {
                CopySigns(memory.SignItems);
            }
            if (memory._categories != null && memory._categories.Count > 0)
            {
                CopyCategories(memory.SessionCategories);
            }
            if (memory._lstHotButton != null && memory._lstHotButton.Count > 0)
            {
                CopyHotButton(memory.HotButtons);
            }

            this._isAlert = memory._isAlert;
            if (memory._greenAlert != null)
            {
                this._greenAlert = memory._greenAlert.Copy();
            }
            if (memory._yellowAlert != null)
            {
                this._yellowAlert = memory._yellowAlert.Copy();
            }
            if (memory._redAlert != null)
            {
                this._redAlert = memory._redAlert.Copy();
            }
        }
Example #4
0
 public void FromTo(QueueAlertItem item)
 {
     this._length = item._length;
     this._level  = item._level;
 }