ShiftOS-Rewind/ShiftOS.Main/ShiftOS/Desktop.cs

68 lines
1.9 KiB
C#
Raw Normal View History

using System;
using System.Windows.Forms;
using ShiftOS.Engine.WindowManager;
using ShiftOS.Main.Properties;
using ShiftOS.Main.ShiftOS.Apps;
2017-11-23 11:20:53 -06:00
using System.IO;
using ShiftOS.Engine;
using System.Drawing;
using ShiftOS.Engine.UI;
namespace ShiftOS.Main.ShiftOS
{
2017-11-22 10:54:51 -07:00
// testing github because git hates me
2017-11-23 11:20:53 -06:00
public partial class Desktop : Form
{
Graphics g;
public Desktop()
{
InitializeComponent();
2017-11-18 18:06:30 -06:00
timer1.Start();
Closed += (sender, args) => { Application.Exit(); };
var s = new ShiftStripRenderer();
}
2017-11-18 18:06:30 -06:00
private void shifterToolStripMenuItem_Click(object sender, EventArgs e)
{
Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter();
ShiftWM.Init(app, "Shifter", Resources.iconShifter);
2017-11-18 18:06:30 -06:00
}
2017-11-18 18:06:30 -06:00
private void Desktop_Load(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Maximized;
}
private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
{
2017-11-18 18:06:30 -06:00
var t = new Apps.Terminal();
ShiftWM.Init(t, "Terminal", Resources.iconTerminal, false);
2017-11-18 18:06:30 -06:00
}
2017-11-18 18:06:30 -06:00
private void textPadToolStripMenuItem_Click(object sender, EventArgs e)
{
var t = new TextPad();
2017-11-18 18:32:37 -06:00
ShiftWM.Init(t, "TextPad", Resources.iconTextPad);
2017-11-18 18:06:30 -06:00
}
2017-11-18 18:06:30 -06:00
private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e)
{
2017-11-18 18:06:30 -06:00
var fs = new FileSkimmer();
ShiftWM.Init(fs, "File Skimmer", Resources.iconFileSkimmer);
}
2017-11-18 18:06:30 -06:00
private void timer1_Tick(object sender, EventArgs e)
{
2017-11-18 18:06:30 -06:00
lblClock.Text = DateTime.Now.ToString("hh:mm:ss");
}
private void SetupToolStrip(ToolStripRenderEventArgs e, Graphics g)
2017-11-23 11:20:53 -06:00
{
var s = new ShiftStripRenderer();
s.DrawToolStripBackground(e);
2017-11-23 11:20:53 -06:00
}
}
}