-
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
Showing
43 changed files
with
189,108 additions
and
0 deletions.
There are no files selected for viewing
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,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.31105.61 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectCafe", "ProjectCafe\ProjectCafe.csproj", "{6CFF0596-E3E9-4658-905F-456E7A2F2828}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{6CFF0596-E3E9-4658-905F-456E7A2F2828}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6CFF0596-E3E9-4658-905F-456E7A2F2828}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6CFF0596-E3E9-4658-905F-456E7A2F2828}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6CFF0596-E3E9-4658-905F-456E7A2F2828}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {AB061E11-C2E0-4638-B659-4EECD2641BC1} | ||
EndGlobalSection | ||
EndGlobal |
Large diffs are not rendered by default.
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,87 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace ProjectCafe | ||
{ | ||
public partial class AboutForm : Form | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void pictureBox1_Click(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
|
||
private void exitToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//dialog result to confirm for exiting app | ||
DialogResult res = MessageBox.Show("Do you want to exit the application?", "Exit Application?", MessageBoxButtons.YesNo, MessageBoxIcon.Question); | ||
|
||
if (res == DialogResult.Yes) | ||
{ | ||
Application.Exit(); | ||
} | ||
} | ||
|
||
private void button1_Click(object sender, EventArgs e) | ||
{ | ||
//dialog result to confirm for exiting app | ||
DialogResult res = MessageBox.Show("Do you want to exit the application?", "Exit Application?", MessageBoxButtons.YesNo, MessageBoxIcon.Question); | ||
|
||
if (res == DialogResult.Yes) | ||
{ | ||
Application.Exit(); | ||
} | ||
} | ||
|
||
private void staffToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//Call for the staff form | ||
StaffForm staff = new StaffForm(); | ||
staff.Show(); | ||
this.Hide(); | ||
} | ||
|
||
private void telephoneToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//Telephone messagebox | ||
MessageBox.Show("Call us on our numbers:" + "\r\n" + "\r\n" + "Landline: " + "021 536 2154" + "\r\n" + "Telephone: " + "078 522 5648", "Contact Details",MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
} | ||
|
||
private void orderFormToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//Call for the order form | ||
OrderForm order = new OrderForm(); | ||
order.Show(); | ||
this.Hide(); | ||
} | ||
|
||
private void addressToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//Address messagebox | ||
MessageBox.Show("24 Lewis Saint Street" + "\r\n" + "Woodstock" + "\r\n" + "Cape Town" + "\r\n" + "7580", "Address", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
} | ||
|
||
private void emailToolStripMenuItem_Click(object sender, EventArgs e) | ||
{ | ||
//Email messagebox | ||
MessageBox.Show("Our email is below:" + "\r\n" + "\r\n" + "[email protected]", "Email", MessageBoxButtons.OK, MessageBoxIcon.Information); | ||
|
||
} | ||
|
||
private void panel2_Paint(object sender, PaintEventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Large diffs are not rendered by default.
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||
</startup> | ||
</configuration> |
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,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows.Forms; | ||
|
||
namespace ProjectCafe | ||
{ | ||
public partial class LoadingForm : Form | ||
{ | ||
public LoadingForm() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void timer1_Tick(object sender, EventArgs e) | ||
{ | ||
//Animate the loading tank | ||
panel1.Width += 2; | ||
|
||
|
||
if (panel1.Width >= 599) | ||
{ | ||
//Stop after some time then show messagebox | ||
timer1.Stop(); | ||
MessageBox.Show("Dear User," + "\r\n" +"You have been successfully logged in!" + "\r\n" + "\r\n" + "Welcome to The net Place Cafe!" + "\r\n" + "Press OK to continue.", "Details Verified", MessageBoxButtons.OK); | ||
|
||
//Go to the About Form after loading | ||
AboutForm about = new AboutForm(); | ||
about.Show(); | ||
this.Hide(); | ||
} | ||
} | ||
|
||
private void pictureBox2_Click(object sender, EventArgs e) | ||
{ | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.