Skip to content
Snippets Groups Projects
Commit 4c71273a authored by Floris's avatar Floris
Browse files

fixed couple of merge problems

parent 83e3d486
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@ namespace PuzzlePlayer_Namespace
{
internal class PuzzleForm : Form
{
public readonly string puzzleType;
private readonly Button solvebutton;
private readonly Button hintbutton;
private readonly Button generatebutton;
......@@ -32,15 +33,11 @@ namespace PuzzlePlayer_Namespace
}
private readonly Button UPDATEBUTTON;
public string puzzleType { get { return "Binary"; } }
//public PuzzleForm(Board b)
//{
// board = b;
// puzzleType = b.GetType().Name;
//}
public PuzzleForm(Board b, Size s = default) //takes Board and Size parameter and sets up the PuzzleForm window.
{
puzzleType = b.GetType().Name;
if (s == default) s = new Size(700, 420);
this.Size = this.MinimumSize = s;
this.WindowState = FormWindowState.Maximized;
......
......@@ -121,6 +121,24 @@ namespace PuzzlePlayer_Namespace
button.Image = Image.FromFile(image + ".jpg");
};
button.MouseClick += (object o, MouseEventArgs e) =>
{
this.Hide();
PuzzleForm puzzleForm = new PuzzleForm(new Binary(6));
puzzleForm.FormClosed += (object o, FormClosedEventArgs fcea) =>
{
this.BackColor = SettingForm.primaryColor;
this.ForeColor = SettingForm.tertiaryColor;
foreach (Control control in this.Controls)
{
SettingForm.UpdateSettings(control);
}
this.Show();
};
puzzleForm.Show();
};
buttonsPanel.Controls.Add(button);
// -- buttons.Add(button);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment