public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { BnetProduct p = (BnetProduct)value; // TODO: Convert this to a brush, and cache/freeze it. switch (p) { case BnetProduct.Starcraft: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/star.png", UriKind.RelativeOrAbsolute))); case BnetProduct.BroodWar: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/sexp.png", UriKind.RelativeOrAbsolute))); case BnetProduct.Warcraft2: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/w2bn.png", UriKind.RelativeOrAbsolute))); case BnetProduct.Diablo2: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/d2dv.png", UriKind.RelativeOrAbsolute))); case BnetProduct.LordOfDest: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/d2xp.png", UriKind.RelativeOrAbsolute))); case BnetProduct.Warcraft3: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/war3.png", UriKind.RelativeOrAbsolute))); case BnetProduct.FrozenThrone: return(new BitmapImage(new Uri("/Superiority;component/Assets/Icons/w3xp.png", UriKind.RelativeOrAbsolute))); default: return(null); } }
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { BnetProduct p = (BnetProduct)value; switch (p) { case BnetProduct.Starcraft: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/sc.jpg", UriKind.RelativeOrAbsolute))); case BnetProduct.BroodWar: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/sc.jpg", UriKind.RelativeOrAbsolute))); case BnetProduct.Warcraft2: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/w2.png", UriKind.RelativeOrAbsolute))); case BnetProduct.Diablo2: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/d2.jpg", UriKind.RelativeOrAbsolute))); case BnetProduct.LordOfDest: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/d2.jpg", UriKind.RelativeOrAbsolute))); case BnetProduct.Warcraft3: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/w3.jpg", UriKind.RelativeOrAbsolute))); case BnetProduct.FrozenThrone: return(new BitmapImage(new Uri("/Superiority;component/Assets/Backgrounds/w3.jpg", UriKind.RelativeOrAbsolute))); default: return(null); } }
public LogonChallengeRequestToken(string username, string password, BnetProduct prod) { Username = username; Password = password; Product = prod; }
public LogonChallengeRequestToken(string username, string password, BnetProduct prod) { Username = username; Password = password; Product = prod; }