示例#1
0
 public MainViewModel(INavigation navigation)
 {
     _navigation              = navigation;
     _dropService             = Locator.Current.GetService <IDropService>();
     DropPins                 = new ObservableCollection <DropPin>();
     Drops.CollectionChanged += OnServiceDropsCollectionChanged;
 }
 public AddDropViewModel(Position currentPosition, INavigation navigation)
 {
     _currentPosition = currentPosition;
     _navigation      = navigation;
     _dropService     = Locator.Current.GetService <IDropService>();
     ValidTo          = DateTime.Now.AddDays(7);
     IsValidForever   = false;
 }
示例#3
0
        private void ExtractFiles()
        {
            _monsterDb = ChickenContainer.Instance.Resolve <INpcMonsterService>();
            _bcardDb   = ChickenContainer.Instance.Resolve <IBCardService>();
            _skillsDb  = ChickenContainer.Instance.Resolve <INpcMonsterSkillService>();
            _dropsDb   = ChickenContainer.Instance.Resolve <IDropService>();

            _monsterDb.Save(_monsters);
            _bcardDb.Save(_monsterBcards);
            _dropsDb.Save(_monsterDrops);
            _skillsDb.Save(_monsterSkills);
        }
示例#4
0
 public DropListViewModel()
 {
     _dropService = Locator.Current.GetService <IDropService>();
 }