mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-01-23 02:02:15 +00:00
c81573594f
Git had a horrible seizure and removed our repo but Alex-TIMEHACK helped us get it back.
67 lines
1.9 KiB
C#
67 lines
1.9 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using ShiftOS.Engine.WindowManager;
|
|
using ShiftOS.Main.Properties;
|
|
using ShiftOS.Main.ShiftOS.Apps;
|
|
using System.IO;
|
|
using ShiftOS.Engine;
|
|
using System.Drawing;
|
|
using ShiftOS.Engine.UI;
|
|
|
|
namespace ShiftOS.Main.ShiftOS
|
|
{
|
|
// testing github because git hates me
|
|
public partial class Desktop : Form
|
|
{
|
|
Graphics g;
|
|
public Desktop()
|
|
{
|
|
InitializeComponent();
|
|
timer1.Start();
|
|
Closed += (sender, args) => { Application.Exit(); };
|
|
var s = new ShiftStripRenderer();
|
|
|
|
}
|
|
|
|
private void shifterToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter();
|
|
ShiftWM.Init(app, "Shifter", Resources.iconShifter);
|
|
}
|
|
|
|
private void Desktop_Load(object sender, EventArgs e)
|
|
{
|
|
this.WindowState = FormWindowState.Maximized;
|
|
}
|
|
|
|
private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
var t = new Apps.Terminal();
|
|
ShiftWM.Init(t, "Terminal", Resources.iconTerminal, false);
|
|
|
|
}
|
|
|
|
private void textPadToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
var t = new TextPad();
|
|
ShiftWM.Init(t, "TextPad", Resources.iconTextPad);
|
|
}
|
|
|
|
private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
var fs = new FileSkimmer();
|
|
ShiftWM.Init(fs, "File Skimmer", Resources.iconFileSkimmer);
|
|
}
|
|
|
|
private void timer1_Tick(object sender, EventArgs e)
|
|
{
|
|
lblClock.Text = DateTime.Now.ToString("hh:mm:ss");
|
|
}
|
|
|
|
private void SetupToolStrip(ToolStripRenderEventArgs e, Graphics g)
|
|
{
|
|
var s = new ShiftStripRenderer();
|
|
s.DrawToolStripBackground(e);
|
|
}
|
|
}
|
|
}
|