예제 #1
0
 public void TurnOutWithStatusFormIfHidden()
 {
     if (AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_TURNOUT_STATUS) && !form.Visible)
     {
         TurnOutForm();
     }
 }
예제 #2
0
 public static void PlaySignalAccordingToStatusConfigValue()
 {
     if (AppConfigManager.GetBoolKeyValue(Properties.Resources.TAG_SOUND_STATUS))
     {
         SystemSounds.Beep.Play();
     }
 }
예제 #3
0
        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();
            }
        }
예제 #4
0
 private string AddVersionToFormName(string name)
 {
     name += " " + AppConfigManager.GetKeyValue(Globals.Globals.TAG_VERSION);
     return(name);
 }