private void WindowLoaded(object sender, RoutedEventArgs e) { var none = new StandingWrapper("<None>", .0); cbCorp.Items.Add(none); cbFaction.Items.Add(none); cbCorp.SelectedIndex = 0; cbFaction.SelectedIndex = 0; var standings = new NPCStandings( _chara.KeyId, _chara.VCode, _chara.CharId.ToString(CultureInfo.InvariantCulture) ); standings.Query(); foreach (NPCStandings.Standing standing in standings.standings.NPCCorporations) { var wrap = new StandingWrapper(standing.fromName, standing.standing); cbCorp.Items.Add(wrap); } foreach (NPCStandings.Standing standing in standings.standings.factions) { var wrap = new StandingWrapper(standing.fromName, standing.standing); cbFaction.Items.Add(wrap); } ToolTipService.SetShowDuration(imgHelp, int.MaxValue); }
private void WindowLoaded(object sender, RoutedEventArgs e) { var none = new StandingWrapper("<None>", .0); cbCorp.Items.Add(none); cbFaction.Items.Add(none); cbCorp.SelectedIndex = 0; cbFaction.SelectedIndex = 0; var standings = new NPCStandings(_chara.KeyId, _chara.VCode, _chara.CharId.ToString(CultureInfo.InvariantCulture)); standings.Query(); foreach (NPCStandings.Standing standing in standings.standings.NPCCorporations) { var wrap = new StandingWrapper(standing.fromName, standing.standing); cbCorp.Items.Add(wrap); } foreach (NPCStandings.Standing standing in standings.standings.factions) { var wrap = new StandingWrapper(standing.fromName, standing.standing); cbFaction.Items.Add(wrap); } ToolTipService.SetShowDuration(imgHelp, int.MaxValue); }