예제 #1
0
        public override void OnLoaded()
        {
            base.OnLoaded();
            networkOptions.Apply();
            fontsOptions.Apply();
            profiles.Add(defaultProfile);
            foreach (UserTranslateProfile pf in userProfiles)
            {
                pf.AfterLoad();
                if (pf.Position < profiles.Count)
                {
                    profiles.Insert(pf.Position, pf);
                }
                else
                {
                    profiles.Add(pf);
                }
            }

            foreach (TranslateProfile pf in profiles)
            {
                if (currentProfileName == pf.Name)
                {
                    currentProfile = pf;
                    break;
                }
            }
        }
 public override void Apply()
 {
     if (IsChanged())
     {
         options.ResultViewFontProp = fscData.CurrentFont;
         options.Apply();
     }
 }