Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
puzzleplayer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Floris
puzzleplayer
Commits
4c71273a
Commit
4c71273a
authored
3 months ago
by
Floris
Browse files
Options
Downloads
Patches
Plain Diff
fixed couple of merge problems
parent
83e3d486
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
PuzzlePlayer/PuzzleForm.cs
+3
-6
3 additions, 6 deletions
PuzzlePlayer/PuzzleForm.cs
PuzzlePlayer/PuzzlePlayer.cs
+18
-0
18 additions, 0 deletions
PuzzlePlayer/PuzzlePlayer.cs
with
21 additions
and
6 deletions
PuzzlePlayer/PuzzleForm.cs
+
3
−
6
View file @
4c71273a
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
PuzzlePlayer/PuzzlePlayer.cs
+
18
−
0
View file @
4c71273a
...
...
@@ -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);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment