/// <summary>
			/// Сбрасывает все наступившие события
			/// </summary>
			public void ResetEventsFlags()
			{
				_errorOccuredEArgs = null;
				_paramChangedArgs = null;
				_statusChangedArgs = null;
			}
Exemple #2
0
        //private void OnNetwokChangedStatus(Guid id, Status newStatus)
        //{
        //    var handler = this.NetworkChangedStatus;

        //    if (handler != null)
        //    {
        //        var args = new StatusChangedEventArgs { Id = id, Status = newStatus };
        //        handler(this, args);
        //    }
        //}

        //private void OnDeviceChangedStatus(Guid id, Status newStatus)
        //{
        //    var handler = this.DeviceChangedStatus;

        //    if (handler != null)
        //    {
        //        var args = new StatusChangedEventArgs { Id = id, Status = newStatus };
        //        handler(this, args);
        //    }
        //}

        private void OnStatusChanged(Guid id, Status newStatus)
        {
            var handler = this.StatusChanged;

            if (handler != null)
            {
                var args = new StatusChangedEventArgs { Id = id, Status = newStatus };
                handler(this, args);
            }
        }
			private void EventHandler_StatusChanged(
				object sender, StatusChangedEventArgs e)
			{
				_statusChangedArgs = e;
			}