2017-09-27 22:32:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Forms;
|
2017-11-05 23:47:46 +00:00
|
|
|
|
using ShiftOS.Engine.Misc;
|
2017-09-27 22:32:16 +00:00
|
|
|
|
using ShiftOS.Engine.WindowManager;
|
2017-11-05 23:47:46 +00:00
|
|
|
|
using ShiftOS.Main.Properties;
|
|
|
|
|
using ShiftOS.Main.ShiftOS.Apps;
|
2017-11-18 20:37:20 +00:00
|
|
|
|
using System.Drawing;
|
2017-09-27 22:32:16 +00:00
|
|
|
|
|
|
|
|
|
namespace ShiftOS.Main.ShiftOS
|
|
|
|
|
{
|
|
|
|
|
public partial class Desktop : Form
|
|
|
|
|
{
|
|
|
|
|
public Desktop()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
2017-11-19 00:06:30 +00:00
|
|
|
|
timer1.Start();
|
2017-09-27 22:32:16 +00:00
|
|
|
|
|
2017-11-05 23:47:46 +00:00
|
|
|
|
Closed += (sender, args) => { Application.Exit(); };
|
2017-09-27 22:32:16 +00:00
|
|
|
|
}
|
2017-11-19 00:06:30 +00:00
|
|
|
|
|
|
|
|
|
private void shifterToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter();
|
|
|
|
|
ShiftWM.Init(app, "Shifter", null);
|
|
|
|
|
}
|
2017-09-27 22:32:16 +00:00
|
|
|
|
|
2017-11-19 00:06:30 +00:00
|
|
|
|
private void Desktop_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.WindowState = FormWindowState.Maximized;
|
|
|
|
|
}
|
2017-10-14 15:23:41 +00:00
|
|
|
|
|
|
|
|
|
private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
2017-11-19 00:06:30 +00:00
|
|
|
|
var t = new Apps.Terminal();
|
|
|
|
|
ShiftWM.Init(t, "Terminal", Resources.iconTerminal, false);
|
2017-11-05 20:13:06 +00:00
|
|
|
|
|
2017-11-19 00:06:30 +00:00
|
|
|
|
}
|
2017-11-11 13:53:55 +00:00
|
|
|
|
|
2017-11-19 00:06:30 +00:00
|
|
|
|
private void textPadToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
var t = new TextPad();
|
2017-11-19 00:32:37 +00:00
|
|
|
|
ShiftWM.Init(t, "TextPad", Resources.iconTextPad);
|
2017-11-19 00:06:30 +00:00
|
|
|
|
}
|
2017-11-18 18:04:01 +00:00
|
|
|
|
|
2017-11-19 00:06:30 +00:00
|
|
|
|
private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e)
|
2017-11-18 18:04:01 +00:00
|
|
|
|
{
|
2017-11-19 00:06:30 +00:00
|
|
|
|
var fs = new FileSkimmer();
|
|
|
|
|
ShiftWM.Init(fs, "File Skimmer", Resources.iconFileSkimmer);
|
2017-11-18 18:04:01 +00:00
|
|
|
|
}
|
2017-11-18 20:37:20 +00:00
|
|
|
|
|
2017-11-19 00:06:30 +00:00
|
|
|
|
private void timer1_Tick(object sender, EventArgs e)
|
2017-11-18 20:37:20 +00:00
|
|
|
|
{
|
2017-11-19 00:06:30 +00:00
|
|
|
|
lblClock.Text = DateTime.Now.ToString("hh:mm:ss");
|
2017-11-18 20:37:20 +00:00
|
|
|
|
}
|
2017-11-18 18:04:01 +00:00
|
|
|
|
}
|
2017-09-27 22:32:16 +00:00
|
|
|
|
}
|