コード例 #1
0
        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);
        }
コード例 #2
0
 public RollCommand(RollAnimation animation, SteamList list)
 {
     this.list          = list.GameList;
     this.animation     = animation;
     RollTimer.Elapsed += new ElapsedEventHandler(Roll_Tick);
 }