public NotificationItem(AnpMsg _msg, UInt32 appID, IAppHelper _helper) { m_helper = _helper; m_appID = appID; m_notificationToTake = DefaultEffect; // Show a popup only if the event occured after we logged on the // workspace and we caught up with the KAS events. In some cases we // do not add an Anp message to this object, simply check for the // CaughtUp flag. WantShowPopup = (_msg == null || _msg.ID > _helper.KwsLoginLatestEventId) && _helper.HasCaughtUpWithKasEvents(); if (_msg != null) { Init(_msg); } }
/// <summary> /// This method is called when the state of the workspace changes. /// </summary> private void OnKwsStatusChangedInternal(object _sender, EventArgs _args) { OnKwsStatusChanged(Helper.GetRunLevel(), Helper.HasCaughtUpWithKasEvents()); }
public NotificationItem(AnpMsg _msg, UInt32 appID, IAppHelper _helper) { m_helper = _helper; m_appID = appID; m_notificationToTake = DefaultEffect; // Show a popup only if the event occured after we logged on the // workspace and we caught up with the KAS events. In some cases we // do not add an Anp message to this object, simply check for the // CaughtUp flag. WantShowPopup = (_msg == null || _msg.ID > _helper.KwsLoginLatestEventId) && _helper.HasCaughtUpWithKasEvents(); if (_msg != null) Init(_msg); }