Exemple #1
0
 protected override void OnLoaded()
 {
     this.DataContext
         = this.viewModel = new ViewModelSkin(this.protoItemSkin,
                                              Api.Client.Microtransactions.GetSkinData(
                                                  (ushort)this.protoItemSkin.SkinId));
 }
Exemple #2
0
 protected override void OnUnloaded()
 {
     this.DataContext = null;
     this.viewModel.Dispose();
     this.viewModel = null;
 }