Exemplo n.º 1
0
        public void Load_Page()
        {
            switch (S5100App.CurrentLoadingModule)
            {
            case S5100App.S5100Module.BookmarkLevel:
                CurrentApp.WriteLog("BookmarkLevel -   Init() BookmarkLevel");
                grdMain.Children.Clear();
                UC_BookmarkLevel ucBookmarkLevel = new UC_BookmarkLevel();
                ucBookmarkLevel.CurrentApp = CurrentApp;
                //PageHead.AppName = CurrentApp.GetLanguageInfo("5101002", "Bookmark levels management");
                grdMain.Children.Add(ucBookmarkLevel);
                break;

            case S5100App.S5100Module.KeyWord:
                CurrentApp.WriteLog("KeyWord -   Init() KeyWord");
                grdMain.Children.Clear();
                UC_KeyWorld ucKeyWorld = new UC_KeyWorld();
                ucKeyWorld.CurrentApp = CurrentApp;
                ucKeyWorld.parentWin  = this;
                // PageHead.AppName = CurrentApp.GetLanguageInfo("5102003", "Keyword management");
                grdMain.Children.Add(ucKeyWorld);
                break;

            //case CurrentApp.S2400Module.KeyRemindSetting:
            //    grdMain.Children.Clear();
            //    UC_EncryptMailSetting ucRemindSetting = new UC_EncryptMailSetting();
            //    ucRemindSetting.parentWin = this;
            //    PageHead.AppName = CurrentApp.GetLanguageInfo("2404H002", "UMP key update notification settings");
            //    grdMain.Children.Add(ucRemindSetting);
            //    break;
            //case CurrentApp.S2400Module.ServerPolicyBinding:
            //    grdMain.Children.Clear();
            //    UC_EncryptionPolicyBindding ucBinding = new UC_EncryptionPolicyBindding();
            //    ucBinding.parentWin = this;
            //    PageHead.AppName = CurrentApp.GetLanguageInfo("2403H001", "UMP加密策略綁定");
            //    grdMain.Children.Add(ucBinding);
            //    break;
            default:
                CurrentApp.WriteLog("BookmarkLevel -   Init() BookmarkLevel");
                grdMain.Children.Clear();
                ucBookmarkLevel            = new UC_BookmarkLevel();
                ucBookmarkLevel.CurrentApp = CurrentApp;
                //PageHead.AppName = CurrentApp.GetLanguageInfo("5101002", "Bookmark levels management");
                grdMain.Children.Add(ucBookmarkLevel);
                break;
            }
        }
Exemplo n.º 2
0
        public override void ChangeLanguage()
        {
            base.ChangeLanguage();
            CurrentApp.AppTitle = CurrentApp.GetLanguageInfo(string.Format("FO{0}", CurrentApp.ModuleID), "Speech Analysis");
            if (grdMain.Children.Count > 0)
            {
                switch (S5100App.CurrentLoadingModule)
                {
                case S5100App.S5100Module.BookmarkLevel:
                    UC_BookmarkLevel ucBookmarkLevel = grdMain.Children[0] as UC_BookmarkLevel;
                    if (ucBookmarkLevel == null)
                    {
                        return;
                    }
                    ucBookmarkLevel.ChangeLanguage();
                    //PageHead.AppName = CurrentApp.GetLanguageInfo("5101002", "Bookmark levels management");
                    break;

                case S5100App.S5100Module.KeyWord:
                    UC_KeyWorld ucKeyWorld = grdMain.Children[0] as UC_KeyWorld;
                    if (ucKeyWorld == null)
                    {
                        return;
                    }
                    ucKeyWorld.ChangeLanguage();
                    //PageHead.AppName = CurrentApp.GetLanguageInfo("2402H006", "UMP encryption service management");
                    //CurrentApp.WriteLog("UC_EncryptServersManagement change language");
                    break;

                case S5100App.S5100Module.SpeechToTtext:
                    //UC_EncryptMailSetting ucRemindSetting = grdMain.Children[0] as UC_EncryptMailSetting;
                    //ucRemindSetting.ChangeLanguage();
                    //PageHead.AppName = CurrentApp.GetLanguageInfo("2404H002", "UMP key alert");
                    //CurrentApp.WriteLog("UC_EncryptMailSetting change language");
                    break;
                }
            }
        }