private void ShowLocalWindow() { var localTableControl = new LocalTableControl(); var stats = new EveLocalStatistics(); stats.UpdateLocalStatistics(_lastLocal); localTableControl.Characters = _lastLocal.Select(x => new EveCharacterViewModel(x, stats)) .ToList(); CreateQuickActionWindow(localTableControl, "Local"); }
public EveCharacterViewModel(IEveCharacter eveCharacter, EveLocalStatistics statistics) { EveCharacter = eveCharacter; _statistics = statistics; EveCharacter.PropertyChanged += OnPropertyChanged; Properties.Settings.Default.PropertyChanged += SettingsPropertyChanged; ActiveProfile.Default.PropertyChanged += SettingsPropertyChanged; _customCharacterInfo = CUSTOM_CHARACTER_INFO_REPOSITORY.GetCustomCharacterInfo(eveCharacter); _customCharacterInfo.PropertyChanged += CustomCharacterInfoOnPropertyChanged; InitValues(); }