private void Button_UpdateCharacter_Click(object sender, RoutedEventArgs e) { Window_Character window = new Window_Character ( m_grid_character.CharacterId, m_grid_character.CharacterName, m_grid_character.CharacterDescription, (win) => { Window_Character wWin = win as Window_Character; if (wWin != null) GinTubBuilderManager.UpdateCharacter(wWin.CharacterId.Value, wWin.CharacterName, wWin.CharacterDescription); } ); window.Show(); }
private void NewCharacterDialog() { Window_Character window = new Window_Character ( null, null, null, (win) => { Window_Character wWin = win as Window_Character; if (wWin != null) GinTubBuilderManager.CreateCharacter(wWin.CharacterName, wWin.CharacterDescription); } ); window.Show(); }