Example #1
0
        public string this[WebUiAction a]
        {
            get
            {
                switch (a)
                {
                case WebUiAction.waiting:
                    return(Get("/web_interface/downloading", "The Web Interface will be downloaded.")
                           + Environment.NewLine +
                           Get("/web_interface/in_a_minute", "This will take a minute."));

                case WebUiAction.removing:
                    return(Get("/web_interface/removing", "Removing the Web Interface..."));

                case WebUiAction.updating:
                    return(Get("/web_interface/updating", "Updating the web interface..."));

                case WebUiAction.removed:
                    return(Get("/web_interface/removed", "Web interface has been removed."));

                default:
                    return(Get("/web_interface/updated", "Web Interface has been updated.")
                           + Environment.NewLine +
                           Get("/web_interface/setup", "Click here to view and set it up!"));
                }
            }
        }
Example #2
0
        /// <summary>
        /// Shows a notification for the specified WebUI-related action
        /// </summary>
        public static void Show(WebUiAction a)
        {
            if (!Settings.General.Notifications)
            {
                return;
            }

            string msg = Common.Languages[a];

            NotificationReady.SafeInvoke(null, new NotificationArgs(msg));
        }
Example #3
0
        /// <summary>
        /// Shows a notification for the specified WebUI-related action
        /// </summary>
        public static void Show(WebUiAction a)
        {
            if (!Settings.General.Notifications)
            {
                return;
            }

            string msg = Common.Languages[a];

            InvokeNotificationReady(null, new NotificationArgs {
                Text = msg
            });
        }
Example #4
0
 public string this[WebUiAction a]
 {
     get
     {
         switch (a)
         {
             case WebUiAction.waiting:
                 return Get("/web_interface/downloading", "The Web Interface will be downloaded.")
                     + Environment.NewLine +
                     Get("/web_interface/in_a_minute", "This will take a minute.");
             case WebUiAction.removing:
                 return Get("/web_interface/removing", "Removing the Web Interface...");
             case WebUiAction.updating:
                 return Get("/web_interface/updating", "Updating the web interface...");
             case WebUiAction.removed:
                 return Get("/web_interface/removed", "Web interface has been removed.");
             default:
                 return Get("/web_interface/updated", "Web Interface has been updated.")
                     + Environment.NewLine +
                     Get("/web_interface/setup", "Click here to view and set it up!");
         }
     }
 }
 private static string Get_WebUI_Message(WebUiAction a)
 {
     switch (a)
     {
         case WebUiAction.waiting:
             return Common.Languages.Get(Profile.Language + "/web_interface/downloading", "The Web Interface will be downloaded.") + Environment.NewLine +
                    Common.Languages.Get(Profile.Language + "/web_interface/in_a_minute", "This will take a minute.");
         case WebUiAction.removing:
             return Common.Languages.Get(Profile.Language + "/web_interface/removing", "Removing the Web Interface...");
         case WebUiAction.updating:
             return Common.Languages.Get(Profile.Language + "/web_interface/updating", "Updating the web interface...");
         case WebUiAction.removed:
             return Common.Languages.Get(Profile.Language + "/web_interface/removed", "Web interface has been removed.");
         default:
             return Common.Languages.Get(Profile.Language + "/web_interface/updated", "Web Interface has been updated.")
                + Environment.NewLine + Common.Languages.Get(Profile.Language + "/web_interface/setup", "Click here to view and set it up!");
     }
 }
        /// <summary>
        /// Shows a notification for the specified WebUI-related action
        /// </summary>
        public static void Show(WebUiAction a)
        {
            if (!Settings.settingsGeneral.Notifications) return;

            string msg = Get_WebUI_Message(a);
            InvokeNotificationReady(null, new NotificationArgs { Text = msg });
        }
Example #7
0
        /// <summary>
        /// Shows a notification for the specified WebUI-related action
        /// </summary>
        public static void Show(WebUiAction a)
        {
            if (!Settings.General.Notifications) return;

            string msg = Common.Languages[a];
            InvokeNotificationReady(null, new NotificationArgs { Text = msg });
        }