-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Albert Querido
committed
Nov 2, 2020
1 parent
dea9e15
commit 52e84c9
Showing
230 changed files
with
182,204 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 11.00 | ||
# Visual Studio 2010 | ||
# SharpDevelop 5.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "final", "final\final.csproj", "{F101FFBD-A23F-4F99-BB47-7F055165299A}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{F101FFBD-A23F-4F99-BB47-7F055165299A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F101FFBD-A23F-4F99-BB47-7F055165299A}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F101FFBD-A23F-4F99-BB47-7F055165299A}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F101FFBD-A23F-4F99-BB47-7F055165299A}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
using System; | ||
using System.Runtime.InteropServices; | ||
using System.Windows.Forms; | ||
|
||
namespace final | ||
{ | ||
public partial class Boss : Form | ||
{ | ||
[DllImport("Gdi32.dll", EntryPoint = "CreateRoundRectRgn")] | ||
private static extern IntPtr CreateRoundRectRgn | ||
( | ||
int nLeftRect, // x-coordinate of upper-left corner | ||
int nTopRect, // y-coordinate of upper-left corner | ||
int nRightRect, // x-coordinate of lower-right corner | ||
int nBottomRect, // y-coordinate of lower-right corner | ||
int nWidthEllipse, // height of ellipse | ||
int nHeightEllipse // width of ellipse | ||
); | ||
public Boss() | ||
{ | ||
InitializeComponent(); | ||
this.FormBorderStyle = FormBorderStyle.None; | ||
Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 25, 25)); | ||
} | ||
|
||
private void pbxImage_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Image One"); | ||
FormBossPic1 pic1 = new FormBossPic1(); | ||
pic1.Owner = this; | ||
pic1.Show(this); | ||
} | ||
|
||
private void pbxWord_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Word"); | ||
FormBossWord word = new FormBossWord(); | ||
word.Owner = this; | ||
word.Show(this); | ||
} | ||
|
||
private void pbxNumber_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Number"); | ||
FormBossNum num = new FormBossNum(); | ||
num.Owner = this; | ||
num.Show(); | ||
} | ||
|
||
private void exit_Click(object sender, EventArgs e) | ||
{ | ||
DialogResult YesOrNo = new DialogResult(); | ||
YesOrNo = MessageBox.Show("Do you want to Exit?\nYou loss the opportunity to save the game", "Are you Sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); | ||
if (YesOrNo == DialogResult.Yes) | ||
{ | ||
Application.Exit(); | ||
} | ||
} | ||
|
||
private void btnback_Click(object sender, EventArgs e) | ||
{ | ||
DialogResult YesOrNo = new DialogResult(); | ||
YesOrNo = MessageBox.Show("Do you want to Exit?\nYou loss the opportunity to save the game", "Are you Sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); | ||
if (YesOrNo == DialogResult.Yes) | ||
{ | ||
this.Close(); | ||
} | ||
} | ||
|
||
public void pbxImage1_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Image"); | ||
FormBossPic i = new FormBossPic(); | ||
i.Owner = this; | ||
i.Show(this); | ||
} | ||
|
||
private void pbxNumber1_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Number One"); | ||
FormBossNum1 num1 = new FormBossNum1(); | ||
num1.Owner = this; | ||
num1.Show(this); | ||
} | ||
|
||
private void pbxWord1_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Word One"); | ||
FormBossWord1 word1 = new FormBossWord1(); | ||
word1.Owner = this; | ||
word1.Show(this); | ||
} | ||
|
||
private void pbxImage2_Click(object sender, EventArgs e) | ||
{ | ||
MessageBox.Show("Good Bye!"); | ||
pbxImage2.Visible = false; | ||
} | ||
} | ||
} |
Oops, something went wrong.