Inheritance: LearnLanguages.Common.ViewModelBases.ViewModelBase
Beispiel #1
0
        public MultiLineTextListStudyPartnerBase
            ()
        {
            _ViewModel                   = new ViewModels.DefaultStudyPartnerViewModel();
            _FeedbackViewModel           = new ViewModels.PercentKnownFeedbackViewModel();
            _FeedbackViewModel.IsEnabled = false;
            _ViewModel.FeedbackViewModel = _FeedbackViewModel;
            _FeedbackTimedOut            = false;
            Services.EventAggregator.Subscribe(this);//navigation

            Id            = Guid.NewGuid();
            _OpenOffers   = new List <IOffer <MultiLineTextList, IViewModelBase> >();
            _DeniedOffers = new List <IOffer <MultiLineTextList, IViewModelBase> >();
            _CurrentOffer = null;

            Exchange.Ton.SubscribeToOpportunities(this);
            Exchange.Ton.SubscribeToOfferResponses(this);
            Exchange.Ton.SubscribeToStatusUpdates(this);
            Exchange.Ton.SubscribeToCancelations(this);
        }
    public MultiLineTextListStudyPartnerBase
      ()
    {
      _ViewModel = new ViewModels.DefaultStudyPartnerViewModel();
      _FeedbackViewModel = new ViewModels.PercentKnownFeedbackViewModel();
      _FeedbackViewModel.IsEnabled = false;
      _ViewModel.FeedbackViewModel = _FeedbackViewModel;
      _FeedbackTimedOut = false;
      Services.EventAggregator.Subscribe(this);//navigation
      
      Id = Guid.NewGuid();
      _OpenOffers = new List<IOffer<MultiLineTextList, IViewModelBase>>();
      _DeniedOffers = new List<IOffer<MultiLineTextList, IViewModelBase>>();
      _CurrentOffer = null;

      Exchange.Ton.SubscribeToOpportunities(this);
      Exchange.Ton.SubscribeToOfferResponses(this);
      Exchange.Ton.SubscribeToStatusUpdates(this);
      Exchange.Ton.SubscribeToCancelations(this);
    }