private void btnPlayerModalEdit_Click(object sender, RoutedEventArgs e) { if (btnPlayerModalEdit.Content.ToString() == "Edit") { PlayerWindow dialogue = new PlayerWindow("Edit Player"); Close(); dialogue.Show(); } else { System.Diagnostics.Debug.WriteLine("DEBUG - stub for deleting a player"); } }
private void btnAddPlayer_Click(object sender, RoutedEventArgs e) { PlayerWindow dialogue = new PlayerWindow(); dialogue.Show(); }