Example #1
0
 public RollAnimation(SteamList list, Canvas canvas, Image image, TextBlock text)
 {
     this.steamlist = list;
     this.canvas    = canvas;
     this.mainImage = image;
     this.mainText  = text;
 }
        public void Initialize(Canvas canvas, TextBlock label, Image image)
        {
            try {
                this.steamlist = FileService.LoadFile <SteamList>();
            } catch (IOException) {
                this.steamlist = new SteamList();
            }
            image.Source = ImageService.GetLogoPlaceholder();

            this.rollAnimation = new RollAnimation(steamlist, canvas, image, label);
            hotkey             = new HotKey(Key.N, KeyModifier.Shift | KeyModifier.Ctrl, OnHotKeyHandler);
        }
Example #3
0
 public SteamIdViewModel(SteamList steamlist, ListViewModel owner)
 {
     this.steamlist      = steamlist;
     this.OwnerViewModel = owner;
     if (File.Exists(steamlist.SteamID + ".jpg"))
     {
         BitmapImage image = new BitmapImage();
         image.BeginInit();
         image.UriSource   = new Uri(steamlist.SteamID + ".jpg", UriKind.RelativeOrAbsolute);
         image.CacheOption = BitmapCacheOption.OnLoad;
         image.EndInit();
         Avatar = image;
     }
     else
     {
         Avatar = ImageService.GetUserPlaceholder();
     }
 }
 public ListViewModel(SteamList list)
 {
     this.steamList   = list;
     this._gameList   = new ObservableCollection <Game>(gameList);
     this._ignoreList = new ObservableCollection <Game>(ignoreList);
 }
 public RollCommand(RollAnimation animation, SteamList list)
 {
     this.list          = list.GameList;
     this.animation     = animation;
     RollTimer.Elapsed += new ElapsedEventHandler(Roll_Tick);
 }