protected override bool HandleStateRaw(SlackState slackState) { _lastSlackState = slackState; _lastTrayState = slackState.TrayState; // Start the animation if possible and enabled var canAnimateIcon = SlackWindowsTray.Default.ToBlinkOnMention&& _lastTrayState == TrayStates.ImportantUnread; canAnimateIcon |= SlackWindowsTray.Default.ToBlinkOnUnread && _lastTrayState == TrayStates.Unread; _animationTimer.Enabled = canAnimateIcon; return true; }
protected override bool HandleStateRaw(SlackState slackState) { _lastSlackState = slackState; _lastTrayState = slackState.TrayState; // Start the animation if possible and enabled var canAnimateIcon = SlackWindowsTray.Default.ToBlinkOnMention && _lastTrayState == TrayStates.ImportantUnread; canAnimateIcon |= SlackWindowsTray.Default.ToBlinkOnUnread && _lastTrayState == TrayStates.Unread; _animationTimer.Enabled = canAnimateIcon; return(true); }
public SlackState(TrayStates trayState) { _chatStates = new List <ChatState>(); TrayState = trayState; }
public SlackState(TrayStates trayState) { _chatStates = new List<ChatState>(); TrayState = trayState; }
public void SetState(TrayStates state) { targetState = state; }