Beispiel #1
0
        public Object Convert(Object value,
                              Type targetType,
                              Object parameter,
                              CultureInfo culture)
        {
            String glyphKey = (String)value;

            CachyFont.Glyph glyph = (CachyFont.Glyph)Enum.Parse(typeof(CachyFont.Glyph), glyphKey, true);
            String          param = parameter as String;

            if (param == "Unicode")
            {
                return(CachyFont.GetString(glyph));
            }
            else
            {
                return(glyph);
            }
        }
Beispiel #2
0
 private static void Initialise()
 {
     _supportedTypes = new ObservableCollection <ProviderType>();
     _supportedTypes.Add(new ProviderType(ProviderType.AuthenticationType.OAuth, CachyFont.GetString(CachyFont.Glyph.Drop_Box), "Dropbox", "https://www.dropbox.com"));
     _supportedTypes.Add(new ProviderType(ProviderType.AuthenticationType.OAuth, CachyFont.GetString(CachyFont.Glyph.Onedrive), "OneDrive", "https://onedrive.live.com"));
     _supportedTypes.Add(new ProviderType(ProviderType.AuthenticationType.Amazon, CachyFont.GetString(CachyFont.Glyph.Amazon_01), "AmazonS3", "https://aws.amazon.com/s3/"));
 }