public SharingDialogViewModel(Windows.UI.Core.CoreDispatcher Dispatcher)
        {
            this.Dispatcher = Dispatcher;
            this.manager = new ShareTargetsManager();
            this.manager.ShareComplete += manager_ShareComplete;

            this.CancelCommand = new DelegateCommand(CancelCommandExecute);
            this.ShareCommand = new DelegateCommand(ShareCommandExecute, CanShareCommandExecute);
        }
 public ShareTargetsViewModel(Windows.UI.Core.CoreDispatcher dispatcher)
 {
     this.Dispatcher = dispatcher;
     Targets = new ObservableCollection<ShareTarget>();
     Share = new DelegateCommand(TargetSelected, ShareEnabled);
     manager = new ShareTargetsManager();
     manager.ShareStarted += manager_ShareStarted;
     manager.ShareComplete += manager_ShareComplete;
     manager.ShareFailed += manager_ShareFailed;
     manager.PeerDiscoveryComplete += model_PeerDiscoveryComplete;
     manager.PeerDiscovered += model_PeerDiscovered;
 }