コード例 #1
0
        public static void SetOptValue(ClsCommand rb)
        {
            Core.DB.Options3 o3 = ClsOptionsControler.Options3(rb.Value1);
            o3.Value = rb.Value2;
            ClsOptionsControler.SaveOptions3(o3);
            GlobalServerEvents.SendMessage(null, new ClsStringEventArgs(ClsRequests.DataRequest(new ClsCommand(command: "Options"))));

            if (rb.Value1.Length > 12)
            {
                if (rb.Value1.Substring(0, 13) == "DisplayScreen")
                {
                    ClsGlobalEvents.Fire_DisplayPropChanged(null, null);
                }
            }

            if (rb.Value1 == "StartPageSet")
            {
                // aktuelle Anzeige umschalten
                ClsGlobal.Instance.ActivePage = ClsPages.GetFirstPageName(ClsPageSets.ActivePageSet());

                ClsCommand cmd = new ClsCommand();
                cmd.Type    = "JN";
                cmd.Command = "Reload";

                ClsServer.Instance.SendMessage(new JavaScriptSerializer().Serialize(cmd));

                // Liste der Anzeigeseiten aktualisieren
                GlobalServerEvents.SendMessage(null, new ClsStringEventArgs(ClsRequests.DataRequest(new ClsCommand(command: "PageList"))));
            }
        }
コード例 #2
0
        public static void SetOptValue(ClsCommand rb)
        {
            Core.DB.Options3 o3 = Core.DBControler.ClsOptionsControler.Options3(rb.Value1);
            o3.Value = rb.Value2;
            Core.DBControler.ClsOptionsControler.SaveOptions3(o3);
            GlobalServerEvents.SendMessage(null, new ClsStringEventArgs(DataRequest(new ClsCommand(command: "Options"))));

            if (rb.Value1.Length > 12)
            {
                if (rb.Value1.Substring(0, 13) == "DisplayScreen")
                {
                    ClsGlobalEvents.Fire_DisplayPropChanged(null, null);
                }
            }
        }