コード例 #1
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="licensingFacade"></param>
        /// <param name="dialogService">The dialog service.</param>
        public GoldPurchasePromptViewModel(ILicensingFacade licensingFacade,
                                           IDialogService dialogService)
        {
            _licensingFacade = licensingFacade;
            _dialogService   = dialogService;

            // Initialize commands
            BuyGoldCommand = new RelayCommand(OnBuyGold);

            // Get current user as UI will bind directly to it.
            CurrentUser = AppEnvironment.Instance.CurrentUser;
        }
コード例 #2
0
        /// <summary>
        /// Creates a new instance.
        /// </summary>
        /// <param name="licensingFacade"></param>
        /// <param name="dialogService">The dialog service.</param>
        public GoldPurchasePromptViewModel(ILicensingFacade licensingFacade,
            IDialogService dialogService)
        {
            _licensingFacade = licensingFacade;
            _dialogService = dialogService;

            // Initialize commands
            BuyGoldCommand = new RelayCommand(OnBuyGold);

            // Get current user as UI will bind directly to it.
            CurrentUser = AppEnvironment.Instance.CurrentUser;
        }