private void Application_Startup(object sender, StartupEventArgs e) { // Configure Hero REST API client HeroServiceClient.ConfigureClient(); // Create the startup window MainWindow wnd = new MainWindow(); // Show the window wnd.Show(); }
public MainWindow() { // TODO: Still need to implement the following features: // Delete hero // Create/Update Hero // Show details another place than the form // Ability to switch between list and create form? InitializeComponent(); lvHeroes.SelectionChanged += new SelectionChangedEventHandler(lvHeroes_SelectionChanged); // Populate the listview with heroes from the REST api lvHeroes.ItemsSource = HeroServiceClient.GetHeroes(); }