Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Sne225 authored Jun 14, 2024
1 parent 9357cdf commit 61175fb
Show file tree
Hide file tree
Showing 43 changed files with 189,108 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ProjectCafe.sln
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
543 changes: 543 additions & 0 deletions ProjectCafe/AboutForm.Designer.cs

Large diffs are not rendered by default.

87 changes: 87 additions & 0 deletions ProjectCafe/AboutForm.cs
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)
{

}
}
}
12,266 changes: 12,266 additions & 0 deletions ProjectCafe/AboutForm.resx

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions ProjectCafe/App.config
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>
133 changes: 133 additions & 0 deletions ProjectCafe/LoadingForm.Designer.cs

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

44 changes: 44 additions & 0 deletions ProjectCafe/LoadingForm.cs
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)
{

}
}
}
Loading

0 comments on commit 61175fb

Please sign in to comment.