Exemplo n.º 1
0
        private void ShowExistingCharacterWindow(object sender, MouseButtonEventArgs e)
        {
            var grid = (DataGrid)sender;

            if (grid.SelectedIndex == -1)
            {
                return;
            }

            var characterManager = (CharacterManager)grid.SelectedItem;
            var charWindow = new CharacterWindow(CampaignManager, characterManager);
            charWindow.Show();
        }
Exemplo n.º 2
0
 private void ShowNewCharacterWindow(object sender, RoutedEventArgs e)
 {
     var newCharWindow = new CharacterWindow(CampaignManager, CampaignManager.GetNewCharacter());
     newCharWindow.Show();
 }