diff options
| author | Alee14 <Alee14498@gmail.com> | 2018-05-12 21:20:42 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-05-12 21:20:42 -0400 |
| commit | 4ce3c28c6c18f021eaa47f8b03fed130f433872f (patch) | |
| tree | faf0a3693710c217888936356e81edb71ec1567d /Project Ports/Desktop.cs | |
| parent | 946f2cdf7a5947dd3a39c58962a5f34cac8e2e8d (diff) | |
| download | Project-Silicon-4ce3c28c6c18f021eaa47f8b03fed130f433872f.tar.gz Project-Silicon-4ce3c28c6c18f021eaa47f8b03fed130f433872f.tar.bz2 Project-Silicon-4ce3c28c6c18f021eaa47f8b03fed130f433872f.zip | |
Some changes in desktop and main menu
Diffstat (limited to 'Project Ports/Desktop.cs')
| -rw-r--r-- | Project Ports/Desktop.cs | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Project Ports/Desktop.cs b/Project Ports/Desktop.cs index 9ab8f50..a16139c 100644 --- a/Project Ports/Desktop.cs +++ b/Project Ports/Desktop.cs @@ -16,5 +16,29 @@ namespace Project_Ports { InitializeComponent(); } + + private void Desktop_Load(object sender, EventArgs e) + { + MessageBox.Show("Welcome to the Project Ports Desktop!"); + + } + + public static string GetTime() + { + var time = DateTime.Now; + + return time.TimeOfDay.TotalHours > 12 ? $"{time.Hour - 12} PM" : $"{time.Hour} AM"; + + } + + private void label1_Click(object sender, EventArgs e) + { + + } + + private void shutdownToolStripMenuItem_Click(object sender, EventArgs e) + { + this.Close(); + } } } |
