コード例 #1
0
ファイル: HomeViewModel.cs プロジェクト: coapp-deprecated/gui
        public HomeViewModel()
        {
            Loaded += OnLoaded;
            var loc = new LocalServiceLocator();
            Featured = loc.FeaturedService;
            CoApp = loc.CoAppService;

            GoToSearch = new RelayCommand(() => loc.NavigationService.GoTo(new ViewModelLocator().SearchViewModel));
        }
コード例 #2
0
ファイル: PackageViewModel.cs プロジェクト: ericschultz/gui
 public PackageViewModel()
 {
     Loaded += OnLoad;
     var loc = new LocalServiceLocator();
     CoApp = loc.CoAppService;
     VmLoc = new ViewModelLocator();
     Nav = loc.NavigationService;
     Activity = loc.ActivityService;
 }
コード例 #3
0
ファイル: ProductViewModel.cs プロジェクト: ericschultz/gui
        public ProductViewModel()
        {
            var loc = new LocalServiceLocator();
            CoApp = loc.CoAppService;
            Nav = loc.NavigationService;
            Activity = loc.ActivityService;
            VmLoc = new ViewModelLocator();

            Loaded += OnLoad;
        }