public void TurnOutWithStatusFormIfHidden() { if (AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_TURNOUT_STATUS) && !form.Visible) { TurnOutForm(); } }
public static void PlaySignalAccordingToStatusConfigValue() { if (AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_SOUND_STATUS)) { SystemSounds.Beep.Play(); } }
private void IndicateMissedEventsAndStatuses() { form.Text = AddVersionToFormName(formName); bool haveMissedEvents = false; if (NewEventsCount > 0) { form.Text += " (" + NewEventsCount + ")"; haveMissedEvents = true; FlashWindow.Start(form); SetTrayNewEventIcon(); } bool isTrayStatusEnabled = AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_TRAY_INDICATION_STATUS); bool isTaskbarStatusEnabled = AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_TASKBAR_INDICATION_STATUS); if ((NewStatusesCount > 0)) { haveMissedEvents = true; if (isTrayStatusEnabled) { SetTrayNewEventIcon(); } if (isTaskbarStatusEnabled) { FlashWindow.Start(form); } } if (!haveMissedEvents) { FlashWindow.Stop(form); SetTrayCommontIcon(); } }
private string AddVersionToFormName(string name) { name += " " + AppConfigManager.GetKeyValue(Globals.Globals.TAG_VERSION); return(name); }