Ejemplo n.º 1
0
        private void Add_OnTap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            e.Handled = true;
            StockItemHeader viewModel = this.ViewModel;

            if (viewModel == null || this._isActivating)
            {
                return;
            }
            this._isActivating = true;
            StorePurchaseManager.ActivateStickersPack(viewModel, (Action <bool>)(activated => Execute.ExecuteOnUIThread((Action)(() => this._isActivating = false))));
        }
Ejemplo n.º 2
0
 public void Deactivate(StockItemHeader stockItemHeader)
 {
     this.SetProgress(true);
     StorePurchaseManager.DeactivateStickersPack(stockItemHeader, (Action <bool>)(deactivated => this.SetProgress(false)));
 }
Ejemplo n.º 3
0
 private void MenuItemRestorePurchases_OnClick(object sender, RoutedEventArgs routedEventArgs)
 {
     StorePurchaseManager.RestorePurchases(null);
 }