Beispiel #1
0
 private void Button1_Click(object sender, RoutedEventArgs e)
 {
     createNewCharacterWinodw         = new CreateNewCharacter();
     createNewCharacterWinodw.Closed += refreshLists;
     if (createNewCharacterWinodw == null)
     {
         createNewCharacterWinodw = new CreateNewCharacter();
     }
     createNewCharacterWinodw.Owner = this;
     createNewCharacterWinodw.ShowDialog();
 }
Beispiel #2
0
 public void refreshLists(object sender, System.EventArgs e)
 {
     createNewCharacterWinodw = null;
     dBControler.UpdateListOfCharacters();
     listBox_Characters.Items.Refresh();
 }