private void AddCharacterBtn_Click(object sender, RoutedEventArgs e) { AddCharacterWindow window = App.ServiceProvider.GetRequiredService <AddCharacterWindow>(); //this.Close(); window.Show(); }
private async void AddCharacterBtn_Click(object sender, RoutedEventArgs e) { AddCharacterWindow window = App.ServiceProvider.GetRequiredService <AddCharacterWindow>(); //this.Close(); window.ShowDialog(); Window_Loaded(sender, e); //await _service.LoadHeroes(mainPanel); }