public void LoadAvailableJobs() { if (AvailableJobs == null) { AvailableJobs = new ObservableCollection <string>(); } foreach (HWJob job in selectedCharacter.HWModel.HWJobList) { if (job.Animated.Progress == BaseProgressClass.States.Completed & AvailableJobs.Contains(job.Name)) { AvailableJobs.Remove(job.Name); } if (job.Animated.Progress != BaseProgressClass.States.Completed & !AvailableJobs.Contains(job.Name)) { HWInfo.ReloadJobList(AvailableJobs, job.Name); } } OnPropertyChanged(nameof(AvailableJobs)); OnPropertyChanged(nameof(RemainingCrystals)); OnPropertyChanged(nameof(WindCount)); OnPropertyChanged(nameof(FireCount)); OnPropertyChanged(nameof(LightningCount)); OnPropertyChanged(nameof(IceCount)); OnPropertyChanged(nameof(EarthCount)); OnPropertyChanged(nameof(WaterCount)); }
public void LoadAvailableJobs() { if (AvailableJobs == null) { AvailableJobs = new ObservableCollection <string>(); } foreach (HWJob job in selectedCharacter.HWModel.HWJobList) { if (job.Awoken.Progress == BaseProgressClass.States.Completed & AvailableJobs.Contains(job.Name)) { AvailableJobs.Remove(job.Name); } if (job.Awoken.Progress != BaseProgressClass.States.Completed & !AvailableJobs.Contains(job.Name)) { HWInfo.ReloadJobList(AvailableJobs, job.Name); } } OnPropertyChanged(nameof(AvailableJobs)); }