示例#1
0
 public PackageViewModel()
 {
     Loaded += OnLoad;
     var loc = new LocalServiceLocator();
     CoApp = loc.CoAppService;
     VmLoc = new ViewModelLocator();
     Nav = loc.NavigationService;
     Activity = loc.ActivityService;
 }
示例#2
0
        public ProductViewModel()
        {
            var loc = new LocalServiceLocator();
            CoApp = loc.CoAppService;
            Nav = loc.NavigationService;
            Activity = loc.ActivityService;
            VmLoc = new ViewModelLocator();

            Loaded += OnLoad;
        }