Exemplo n.º 1
0
			/// <summary>
			/// Сбрасывает все наступившие события
			/// </summary>
			public void ResetEventsFlags()
			{
				_errorOccuredEArgs = null;
				_paramChangedArgs = null;
				_statusChangedArgs = null;
			}
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
0
			private void EventHandler_StatusChanged(
				object sender, StatusChangedEventArgs e)
			{
				_statusChangedArgs = e;
			}