private void btLoad_Click(object sender, RoutedEventArgs e) { if (LbCharacters.SelectedItem != null) { var cnc = new CreateNewCharacter(LbCharacters.SelectedItem as Character); cnc.Show(); Close(); } else { MessageBox.Show("Please Select a Character to Load"); } }
private void btLoad_Click( object sender, RoutedEventArgs e ) { if (LbCharacters.SelectedItem != null) { var cnc = new CreateNewCharacter(LbCharacters.SelectedItem as Character); cnc.Show(); Close(); } else { MessageBox.Show("Please Select a Character to Load"); } }
private void menuCreateNewCharacter_Click( object sender, RoutedEventArgs e ) { MyCharacter = ServerConnection.LocalServiceClient.GetBlankCharacter(LocalCient); var cnc = new CreateNewCharacter(MyCharacter); cnc.ShowDialog(); }