/// <summary>
 /// Initializes a new instance of the <see cref="AboutViewModel"/> class.
 /// </summary>
 /// <param name="emailComposeService">
 /// The email Compose Service.
 /// </param>
 /// <param name="applicationManifestService">
 /// The application Manifest Service.
 /// </param>
 /// <param name="marketplaceReviewService">
 /// The marketplace review service
 /// </param>
 /// <param name="shareLinkService">
 /// The share Link Service.
 /// </param>
 public AboutViewModel(
     IEmailComposeService emailComposeService,
     IApplicationManifestService applicationManifestService,
     IMarketplaceReviewService marketplaceReviewService,
     IShareLinkService shareLinkService)
 {
     _emailComposeService      = emailComposeService;
     _marketplaceReviewService = marketplaceReviewService;
     _shareLinkService         = shareLinkService;
     RateCommand               = new RelayCommand(this.Rate);
     SendFeedbackCommand       = new RelayCommand(this.SendFeedback);
     ShareToMailCommand        = new RelayCommand(this.ShareToMail);
     ShareSocialNetworkCommand = new RelayCommand(this.ShareSocialNetwork);
     _applicationManifest      = applicationManifestService.GetApplicationManifest();
     _appUrl = string.Concat("http://windowsphone.com/s?appid=", _applicationManifest.App.ProductId);
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MainViewModel"/> class.
 /// </summary>
 /// <param name="emailComposeService">
 /// The email Compose Service.
 /// </param>
 /// <param name="applicationManifestService">
 /// The application Manifest Service.
 /// </param>
 /// <param name="marketplaceReviewService">
 /// The marketplace review service
 /// </param>
 /// <param name="shareLinkService">
 /// The share Link Service.
 /// </param>
 public MainViewModel(IApplicationManifestService applicationManifestService)
 {
     _applicationManifest = applicationManifestService.GetApplicationManifest();
     _appUrl = string.Concat("http://windowsphone.com/s?appid=", _applicationManifest.App.ProductId);
 }