Exemple #1
0
        public string GetString(ResourceNames.AboutBox resourceName)
        {
            string resource = string.Empty;

            switch (resourceName)
            {
            case ResourceNames.AboutBox.Title:
                resource = Properties.Resources.AboutWindowTitle;
                break;
            }
            return(EnsureStringLoaded(resource, resourceName.ToString()));
        }
Exemple #2
0
        public ImageSource GetImageSource(ResourceNames.AboutBox resourceName)
        {
            ImageSource image = null;

            switch (resourceName)
            {
            case ResourceNames.AboutBox.Image:
                image = new BitmapImage(
                    new Uri(@"pack://application:,,,/DynamoCoreWpf;component/UI/Images/AboutWindow/logo_about.png",
                            UriKind.Absolute));
                break;
            }
            return(EnsureImageLoaded(image, resourceName.ToString()));
        }