Skip to content

Commit

Permalink
Add project files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Querido committed Nov 2, 2020
1 parent dea9e15 commit 52e84c9
Show file tree
Hide file tree
Showing 230 changed files with 182,204 additions and 0 deletions.
Binary file added PASCO.pptx
Binary file not shown.
18 changes: 18 additions & 0 deletions final.sln
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
219 changes: 219 additions & 0 deletions final/Boss.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions final/Boss.cs
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;
}
}
}
Loading

0 comments on commit 52e84c9

Please sign in to comment.