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); }
public RollCommand(RollAnimation animation, SteamList list) { this.list = list.GameList; this.animation = animation; RollTimer.Elapsed += new ElapsedEventHandler(Roll_Tick); }