示例#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);
        }