Merineth πŸ‡ΈπŸ‡ͺ
Merineth πŸ‡ΈπŸ‡ͺ
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
it does add the names at the bottom now
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
No description
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
for sure
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
:aaaa:
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
and it WORKS?!
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
ok i added it back
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
It's not returning true form the setup game dialog
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
private void NewGameButton_Click(object sender, RoutedEventArgs e)
{
// Show the SetUpGameDialog to collect player names and types
SetUpGameDialog setUpDialog = new SetUpGameDialog();
bool? result = setUpDialog.ShowDialog(); // Show dialog and wait for result

if (result == true) // If OK was clicked (DialogResult = true)
{
// Retrieve player names and player types
string player1Name = setUpDialog.Player1Name;
string player2Name = setUpDialog.Player2Name;
bool isPlayer2Computer = setUpDialog.IsPlayer2Computer;

// Update the status section with the player names
Player1Label.Text = "Player 1: " + player1Name;
Player2Label.Text = "Player 2: " + player2Name;

// You can set the scores or other initial data
Player1Score.Text = "Black Disks: 0";
Player2Score.Text = "White Disks: 0";

// Initialize the game with the provided player data
// For example:
// GameManager.StartGame(player1Name, player2Name, isPlayer2Computer);
}
else
{
// If the user cancels the setup
MessageBox.Show("Game setup was canceled.", "Canceled");
}
}
private void NewGameButton_Click(object sender, RoutedEventArgs e)
{
// Show the SetUpGameDialog to collect player names and types
SetUpGameDialog setUpDialog = new SetUpGameDialog();
bool? result = setUpDialog.ShowDialog(); // Show dialog and wait for result

if (result == true) // If OK was clicked (DialogResult = true)
{
// Retrieve player names and player types
string player1Name = setUpDialog.Player1Name;
string player2Name = setUpDialog.Player2Name;
bool isPlayer2Computer = setUpDialog.IsPlayer2Computer;

// Update the status section with the player names
Player1Label.Text = "Player 1: " + player1Name;
Player2Label.Text = "Player 2: " + player2Name;

// You can set the scores or other initial data
Player1Score.Text = "Black Disks: 0";
Player2Score.Text = "White Disks: 0";

// Initialize the game with the provided player data
// For example:
// GameManager.StartGame(player1Name, player2Name, isPlayer2Computer);
}
else
{
// If the user cancels the setup
MessageBox.Show("Game setup was canceled.", "Canceled");
}
}
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
because i removed that line
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
ok i got a problem now
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
Well the setupgamewindow works
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
teachers are psychotic for making an assignment this hard
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
i'm never gonna finish this
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
I only care to finish the assignment xd
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
seems to work lol
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
Can't i just remove it?
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
son idk why it's casting an exception
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
and shown as a dialog
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
the window has been created
180 replies
CC#
Created by Merineth πŸ‡ΈπŸ‡ͺ on 11/23/2024 in #help
Troubleshooting xaml - initialize window
No description
180 replies