Exemplo n.º 1
0
        public ShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory)
        {
            this.serviceDispatcher = serviceDispatcher;
            this.viewModelFactory  = viewModelFactory;

            serviceDispatcher.Subscribe <INavigationService>(this);
            serviceDispatcher.Subscribe <IDetachService>(this);

            Items         = new ObservableCollection <IViewModel>();
            DetachedItems = new ObservableCollection <IViewModel>();
        }
Exemplo n.º 2
0
        public MapViewModel(IServiceDispatcher serviceDispatcher)
        {
            this.serviceDispatcher = serviceDispatcher;

            serviceDispatcher.Subscribe <IMapService>(this);

            MapType      = MapType.Roads;
            Markers      = new ObservableCollection <Marker>();
            TileOverlays = new ObservableCollection <TileOverlay>();
        }
Exemplo n.º 3
0
        public virtual void Initialize()
        {
            CurrentPlatform = Container.GetInstance <IPlatformProvider>().GetPlatform();

            Container.GetInstance <IViewModelFactory>().Initialize();
            Container.GetInstance <IViewFactory>().Initialize();
            Container.GetInstance <IServiceDispatcher>().Initialize();

            pluginProvider = Container.GetInstance <IPluginProvider>();

            serviceDispatcher = Container.GetInstance <IServiceDispatcher>();
            serviceDispatcher.Subscribe <IShellNavigationService>(this);

            Run();
        }
Exemplo n.º 4
0
 public TabShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory)
     : base(serviceDispatcher, viewModelFactory)
 {
     serviceDispatcher.Subscribe <ITabNavigationService>(this);
 }
Exemplo n.º 5
0
 public virtual void Start()
 {
     serviceDispatcher.Subscribe <T>(this as T);
 }
 public MasterDetailShellViewModel(IServiceDispatcher serviceDispatcher, IViewModelFactory viewModelFactory)
     : base(serviceDispatcher, viewModelFactory)
 {
     serviceDispatcher.Subscribe <IMasterDetailNavigationService>(this);
 }
Exemplo n.º 7
0
        public WebBrowserViewModel(IServiceDispatcher serviceDispatcher)
        {
            this.serviceDispatcher = serviceDispatcher;

            serviceDispatcher.Subscribe <IWebBrowserService>(this);
        }