Ejemplo n.º 1
0
        public PullerView(BuzzCharacter buzzCharacter, Window parentWindow)
        {
            InitializeComponent();
            CurrentViewModel = new PullerViewModel(buzzCharacter);
            this.DataContext = CurrentViewModel;
            buzzCharacter.SystemInformationUpdated += BuzzCharacterSystemInformationUpdated;

            ParentWindow = parentWindow;

            SizeChanged += (s, e) => { CurrentViewModel.ClientSizeChanged(GetRenderArea()); };

            this.Loaded += (sender, args) =>
            {
                var renderArea = GetRenderArea();
                CurrentViewModel.InitializeThumbnailInfo(new WindowInteropHelper(Window.GetWindow(this)).Handle,
                                                         renderArea);
            };
        }
Ejemplo n.º 2
0
 public async void RefreshGivenCharacterInformation(BuzzCharacter character)
 {
     await character.RefreshCharacterInformation();
 }