コード例 #1
0
        private void AddCharacterBtn_Click(object sender, RoutedEventArgs e)
        {
            AddCharacterWindow window = App.ServiceProvider.GetRequiredService <AddCharacterWindow>();

            //this.Close();
            window.Show();
        }
コード例 #2
0
        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);
        }