Exemple #1
0
 protected override void OnUnloaded()
 {
     Instance         = null;
     this.DataContext = null;
     this.viewModel.Dispose();
     this.viewModel = null;
 }
Exemple #2
0
        protected override void OnLoaded()
        {
            var statusEffects = Api.Client.Characters.CurrentPlayerCharacter
                                .GetPrivateState <BaseCharacterPrivateState>()
                                .StatusEffects;

            this.DataContext = this.viewModel = new ViewModelHUDStatusEffectsBar(statusEffects);

            Instance = this;
        }
Exemple #3
0
 protected override void OnLoaded()
 {
     this.DataContext = this.viewModel = new ViewModelHUDStatusEffectsBar();
     Instance         = this;
 }