/// <summary>
 /// Constructor
 /// </summary>
 public ManageMapViewModel(INavigationService navService, IMyEventsClient myEventsClient)
 {
     _navService   = navService;
     _eventsClient = myEventsClient;
     _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
     SuscribeCommands();
 }
 /// <summary>
 /// Constructor
 /// </summary>
 public ManageMapViewModel(INavigationService navService, IMyEventsClient myEventsClient)
 {
     _navService = navService;
     _eventsClient = myEventsClient;
     _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
     SuscribeCommands();
 }
Beispiel #3
0
        /// <summary>
        /// Constructor or the class
        /// </summary>
        /// <param name="navService">INavigationService dependency</param>
        /// <param name="eventsClient">IMyEventsClient dependency</param>
        public RegisteredUsersViewModel(INavigationService navService, IMyEventsClient eventsClient)
        {
            _navService   = navService;
            _eventsClient = eventsClient;

            SuscribeCommands();
        }
        /// <summary>
        /// Constructor or the class
        /// </summary>
        /// <param name="navService">INavigationService dependency</param>
        /// <param name="eventsClient">IMyEventsClient dependency</param>
        public RegisteredUsersViewModel(INavigationService navService, IMyEventsClient eventsClient)
        {
            _navService = navService;
            _eventsClient = eventsClient;

            SuscribeCommands();
        }
 /// <summary>
 /// Constructor of ManageEventsViewModel with parameters
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="eventsClient"></param>
 public ManageEventsViewModel(INavigationService navigationService, IMyEventsClient eventsClient)
 {
     IsBusy = true;
     _navService = navigationService;
     _eventsClient = eventsClient;
     LoadData();
     SuscribeCommands();
 }
Beispiel #6
0
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="navService"></param>
        /// <param name="eventsClient"></param>
        public EventDetailsViewModel(INavigationService navService, IMyEventsClient eventsClient)
        {
            _navService   = navService;
            _eventsClient = eventsClient;
            SuscribeCommands();

            _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public EventScheduleViewModel(IMyEventsClient eventsClient, INavigationService navService)
        {
            _eventsClient        = eventsClient;
            _navService          = navService;
            _navigateBackCommand = new Lazy <RelayCommand>(() => new RelayCommand(NavigateBackExecute));

            _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
        }
Beispiel #8
0
 /// <summary>
 /// Default constructor for the UploadMaterialViewModel
 /// </summary>
 public UploadMaterialViewModel(INavigationService navService, IMyEventsClient eventsClient)
 {
     _navService   = navService;
     _eventsClient = eventsClient;
     Materials     = new ObservableCollection <Material>();
     _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
     SuscribeCommands();
 }
        /// <summary>
        /// Default constructor.
        /// </summary>
        /// <param name="navService"></param>
        /// <param name="eventsClient"></param>
        public EventDetailsViewModel(INavigationService navService, IMyEventsClient eventsClient)
        {
            _navService = navService;
            _eventsClient = eventsClient;
            SuscribeCommands();

            _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
        }
Beispiel #10
0
 /// <summary>
 /// Constructor of ManageEventsViewModel with parameters
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="eventsClient"></param>
 public ManageEventsViewModel(INavigationService navigationService, IMyEventsClient eventsClient)
 {
     IsBusy        = true;
     _navService   = navigationService;
     _eventsClient = eventsClient;
     LoadData();
     SuscribeCommands();
 }
 /// <summary>
 /// Default constructor for the UploadMaterialViewModel  
 /// </summary>
 public UploadMaterialViewModel(INavigationService navService, IMyEventsClient eventsClient)
 {
     _navService = navService;
     _eventsClient = eventsClient;
     Materials = new ObservableCollection<Material>();
     _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
     SuscribeCommands();
 }
        /// <summary>
        /// Constructor
        /// </summary>
        public EventScheduleViewModel(IMyEventsClient eventsClient, INavigationService navService)
        {
            _eventsClient = eventsClient;
            _navService = navService;
            _navigateBackCommand = new Lazy<RelayCommand>(() => new RelayCommand(NavigateBackExecute));

            _eventsClient.SetAccessToken(Credentials.UserCredentials.Current.MyEventsToken);
        }
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        /// <param name="myEventsSrv">myEvents Service</param>
        public MainViewModel(INavigationService navSrv, IMyEventsClient myEventsSrv)
        {
            _navService      = navSrv;
            _myEventsService = myEventsSrv;

            _navigateToDetailsCommand = new Lazy <RelayCommand <EventDefinition> >(() => new RelayCommand <EventDefinition>(NavigateToDetailsCommandExecute));

            InitializeData();
        }
Beispiel #14
0
        /// <summary>
        /// Initializes a new instance of the MainViewModel class.
        /// </summary>
        /// <param name="myEventsSrv">myEvents Service</param>
        public MainViewModel(INavigationService navSrv, IMyEventsClient myEventsSrv)
        {
            _navService = navSrv;
            _myEventsService = myEventsSrv;

            _navigateToDetailsCommand = new Lazy<RelayCommand<EventDefinition>>(() => new RelayCommand<EventDefinition>(NavigateToDetailsCommandExecute));

            InitializeData();
        }
Beispiel #15
0
 /// <summary>
 /// Initializes a new instance of the SessionDetailViewModel class.
 /// </summary>
 public SessionDetailViewModel(INavigationService navSrv, IMyEventsClient myEventSrv)
 {
     _navService      = navSrv;
     _myEventsService = myEventSrv;
     _myEventsService.SetAccessToken(UserCredentials.Current.CurrentUser.MyEventsToken);
     _navigateBackCommand  = new Lazy <RelayCommand>(() => new RelayCommand(NavigateBackCommandExecute));
     _deleteCommentCommand = new Lazy <RelayCommand>(() => new RelayCommand(DeleteCommentCommandExecute));
     _pinToStartCommand    = new Lazy <RelayCommand <Rect> >(() => new RelayCommand <Rect>(PinToStartCommandExecute));
 }
 /// <summary>
 /// Initialices a new instance o Main desktop viewmodel with navigation service param
 /// </summary>
 /// <param name="navigationService"></param>
 /// <param name="eventsClient"></param>
 public MainDesktopViewModel(INavigationService navigationService, IMyEventsClient eventsClient)
 {
     _navService   = navigationService;
     TopTags       = new ObservableCollection <Tag>();
     _eventsClient = eventsClient;
     TopSpeakers   = new ObservableCollection <OrdererSpeaker>();
     SuscribeCommands();
     LoadData();
 }
        /// <summary>
        /// Initializes a new instance of the SessionDetailViewModel class.
        /// </summary>
        public SessionDetailViewModel(INavigationService navSrv, IMyEventsClient myEventSrv)
        {
            _navService = navSrv;
            _myEventsService = myEventSrv;
            _myEventsService.SetAccessToken(UserCredentials.Current.CurrentUser.MyEventsToken);
            _navigateBackCommand = new Lazy<RelayCommand>(() => new RelayCommand(NavigateBackCommandExecute));
            _deleteCommentCommand = new Lazy<RelayCommand>(() => new RelayCommand(DeleteCommentCommandExecute));
            _pinToStartCommand = new Lazy<RelayCommand<Rect>>(() => new RelayCommand<Rect>(PinToStartCommandExecute));

        }
        /// <summary>
        /// Initializes a new instance of the EventDetailViewModel class.
        /// </summary>
        /// <param name="navSrv">Navigation Service</param>
        /// <param name="twitterSrv">Twitter Service</param>
        /// <param name="myEventSrv">MyEvents Service</param>
        public EventDetailViewModel(INavigationService navSrv, ITwitterService twitterSrv, IMyEventsClient myEventSrv)
        {
            _navService      = navSrv;
            _twitterService  = twitterSrv;
            _myEventsService = myEventSrv;

            TwitterBtnContent = _loader.GetString("LogInTwitter");
            InitializeCommands();

            _myEventsService.SetAccessToken(UserCredentials.Current.CurrentUser.MyEventsToken);
        }
        /// <summary>
        /// Initializes a new instance of the EventDetailViewModel class.
        /// </summary>
        /// <param name="navSrv">Navigation Service</param>
        /// <param name="twitterSrv">Twitter Service</param>
        /// <param name="myEventSrv">MyEvents Service</param>
        public EventDetailViewModel(INavigationService navSrv, ITwitterService twitterSrv, IMyEventsClient myEventSrv)
        {
            _navService = navSrv;
            _twitterService = twitterSrv;
            _myEventsService = myEventSrv;

            TwitterBtnContent = _loader.GetString("LogInTwitter");
            InitializeCommands();

            _myEventsService.SetAccessToken(UserCredentials.Current.CurrentUser.MyEventsToken);
        }
 /// <summary>
 /// Initializes a new instance of the SpashScreenViewModel
 /// </summary>
 /// <param name="navSrv">Navigation service</param>
 /// <param name="myEventsrSrv">myEvents service</param>
 /// <param name="uiSrv"></param>
 public SplashScreenViewModel(INavigationService navSrv, IMyEventsClient myEventsrSrv, IUIService uiSrv)
 {
     _navService      = navSrv;
     _myEventsService = myEventsrSrv;
     _uiService       = uiSrv;
 }
 /// <summary>
 /// Initializes a new instance of the SpashScreenViewModel 
 /// </summary>
 /// <param name="navSrv">Navigation service</param>
 /// <param name="myEventsrSrv">myEvents service</param>
 /// <param name="uiSrv"></param>       
 public SplashScreenViewModel(INavigationService navSrv, IMyEventsClient myEventsrSrv, IUIService uiSrv)
 {
     _navService = navSrv;
     _myEventsService = myEventsrSrv;
     _uiService = uiSrv;
 }