コード例 #1
0
 /// <summary>
 /// Adds additional resource file references into the existing theme definition.
 /// </summary>
 /// <param name="additionalResource"></param>
 public void AddResources(List <Uri> additionalResource)
 {
     foreach (var item in additionalResource)
     {
         ThemeSources.Add(item);
     }
 }
コード例 #2
0
ファイル: ThemeInfo.cs プロジェクト: IlyaFinkelshteyn/MLib
        /// <summary>
        /// Class constructor
        /// </summary>
        /// <param name="themeName"></param>
        /// <param name="themeSources"></param>
        public ThemeInfo(string themeName,
                         List <Uri> themeSources)
            : this()
        {
            DisplayName = themeName;

            if (themeSources != null)
            {
                foreach (var item in themeSources)
                {
                    ThemeSources.Add(new Uri(item.OriginalString, UriKind.Relative));
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// Class constructor
        /// </summary>
        /// <param name="themeName"></param>
        /// <param name="themeSources"></param>
        public ThemeDefinitionViewModel(string themeName,
                                        List <Uri> themeSources,
                                        string highlightingThemeName)
            : this()
        {
            DisplayName = themeName;

            if (themeSources != null)
            {
                foreach (var item in themeSources)
                {
                    ThemeSources.Add(new Uri(item.OriginalString, UriKind.Relative));
                }
            }

            HighlightingThemeName = highlightingThemeName;
        }