2018-05-12 21:58:58 -04:00
|
|
|
|
/************************************************************************
|
|
|
|
|
*
|
|
|
|
|
* Project Ports
|
2018-08-25 18:14:38 -04:00
|
|
|
|
* Copyright (C) 2018 UniverseDG
|
2018-05-12 21:58:58 -04:00
|
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
*
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
using System;
|
2018-05-12 20:57:57 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
2018-08-26 23:10:32 -04:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-05-12 20:57:57 -04:00
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
2018-05-20 13:45:57 -04:00
|
|
|
|
using PortEngine;
|
2018-05-12 20:57:57 -04:00
|
|
|
|
|
2018-08-25 18:14:38 -04:00
|
|
|
|
|
2018-05-12 20:57:57 -04:00
|
|
|
|
namespace Project_Ports
|
|
|
|
|
{
|
|
|
|
|
public partial class Desktop : Form
|
|
|
|
|
{
|
|
|
|
|
public Desktop()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
2018-05-12 21:20:42 -04:00
|
|
|
|
|
2018-05-20 13:45:57 -04:00
|
|
|
|
WindowManager wm = new WindowManager();
|
|
|
|
|
|
2018-05-17 14:09:47 -04:00
|
|
|
|
private void dclock_Tick(object sender, EventArgs e)
|
2018-05-12 21:20:42 -04:00
|
|
|
|
{
|
2018-08-27 16:58:32 -04:00
|
|
|
|
GeneralAPI.setNameOnAppLauncher(playerName);
|
2018-05-17 14:09:47 -04:00
|
|
|
|
this.ltime.Text = DateTime.Now.ToString("hh:mm tt");
|
2018-05-12 21:20:42 -04:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-17 14:09:47 -04:00
|
|
|
|
private void Desktop_Load(object sender, EventArgs e)
|
2018-05-12 21:20:42 -04:00
|
|
|
|
{
|
2018-08-26 23:56:45 -04:00
|
|
|
|
dclock.Start();
|
2018-08-27 15:50:26 -04:00
|
|
|
|
desktopWatermark.Text = "Project: Ports " + Properties.Settings.Default.version + Environment.NewLine + "Working Progress";
|
2018-08-27 10:54:10 -04:00
|
|
|
|
appMenu.Hide();
|
|
|
|
|
|
2018-05-12 21:20:42 -04:00
|
|
|
|
}
|
2018-05-17 14:09:47 -04:00
|
|
|
|
|
2018-05-12 21:20:42 -04:00
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void appButton_Click(object sender, EventArgs e)
|
2018-05-12 21:20:42 -04:00
|
|
|
|
{
|
2018-08-27 10:54:10 -04:00
|
|
|
|
appMenu.Show();
|
2018-05-12 21:20:42 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void shutdownButton_Click(object sender, EventArgs e)
|
2018-05-12 21:20:42 -04:00
|
|
|
|
{
|
|
|
|
|
this.Close();
|
|
|
|
|
}
|
2018-05-13 18:37:02 -04:00
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void toolStripButton1_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void terminalToolStripMenuItem_Click_1(object sender, EventArgs e)
|
2018-05-13 18:37:02 -04:00
|
|
|
|
{
|
2018-05-20 13:45:57 -04:00
|
|
|
|
wm.createWindow(new Terminal(), "Terminal");
|
2018-08-27 10:54:10 -04:00
|
|
|
|
appMenu.Hide();
|
2018-05-13 18:37:02 -04:00
|
|
|
|
}
|
2018-05-20 00:13:37 -04:00
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void testWindowToolStripMenuItem_Click_1(object sender, EventArgs e)
|
2018-05-20 00:13:37 -04:00
|
|
|
|
{
|
2018-08-25 18:14:38 -04:00
|
|
|
|
wm.createWindow(new TestWindow(), "TestWindow");
|
2018-08-27 10:54:10 -04:00
|
|
|
|
appMenu.Hide();
|
2018-05-20 00:13:37 -04:00
|
|
|
|
}
|
2018-08-26 00:35:17 -04:00
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void chatterToolStripMenuItem_Click_1(object sender, EventArgs e)
|
2018-08-26 00:35:17 -04:00
|
|
|
|
{
|
2018-08-27 10:54:10 -04:00
|
|
|
|
wm.createWindow(new ChatApp(), "Chatter");
|
|
|
|
|
appMenu.Hide();
|
2018-08-26 00:35:17 -04:00
|
|
|
|
}
|
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void settingsToolStripMenuItem_Click_1(object sender, EventArgs e)
|
2018-08-26 00:35:17 -04:00
|
|
|
|
{
|
2018-08-27 10:54:10 -04:00
|
|
|
|
wm.createWindow(new Settings(), "System Settings");
|
|
|
|
|
appMenu.Hide();
|
2018-08-26 00:35:17 -04:00
|
|
|
|
}
|
2018-08-26 16:02:01 -04:00
|
|
|
|
|
2018-08-27 10:54:10 -04:00
|
|
|
|
private void quantumNetBrowserToolStripMenuItem_Click_1(object sender, EventArgs e)
|
2018-08-26 16:02:01 -04:00
|
|
|
|
{
|
|
|
|
|
wm.createWindow(new QuantumNet(), "QuantumNet Browser");
|
2018-08-27 10:54:10 -04:00
|
|
|
|
appMenu.Hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Desktop_MouseClick(object sender, MouseEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
appMenu.Hide();
|
2018-08-26 16:02:01 -04:00
|
|
|
|
}
|
2018-05-12 20:57:57 -04:00
|
|
|
|
}
|
|
|
|
|
}
|