mirror of
https://github.com/ShiftOS-Rewind/ShiftOS.git
synced 2025-02-02 05:47:34 +00:00
11bb4cea77
someone needs to fix it but it's a thing now
55 lines
1.4 KiB
C#
55 lines
1.4 KiB
C#
using System;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
using ShiftOS.Engine.Misc;
|
|
using ShiftOS.Engine.WindowManager;
|
|
using ShiftOS.Main.Properties;
|
|
using ShiftOS.Main.ShiftOS.Apps;
|
|
using System.Drawing;
|
|
|
|
namespace ShiftOS.Main.ShiftOS
|
|
{
|
|
public partial class Desktop : Form
|
|
{
|
|
public Desktop()
|
|
{
|
|
InitializeComponent();
|
|
|
|
|
|
Closed += (sender, args) => { Application.Exit(); };
|
|
}
|
|
|
|
void timer1_Tick(object sender, EventArgs e) =>
|
|
lblClock.Text = $"{DateTime.Now:t}";
|
|
|
|
private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
Apps.Terminal trm = new Apps.Terminal();
|
|
|
|
ShiftWM.Init(trm, "Terminal", null, false, true);
|
|
}
|
|
|
|
void textPadToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
var tp = new TextPad();
|
|
ShiftWM.Init(tp, "TextPad", Resources.iconTextPad);
|
|
}
|
|
|
|
void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
var fs = new FileSkimmer();
|
|
ShiftWM.Init(fs, "File Skimmer", Resources.iconFileSkimmer);
|
|
}
|
|
|
|
private void shifterToolStripMenuItem_Click(object sender, EventArgs e)
|
|
{
|
|
Apps.ShifterStuff.Shifter app = new Apps.ShifterStuff.Shifter();
|
|
ShiftWM.Init(app, "Shifter", null);
|
|
}
|
|
|
|
private void Desktop_Load(object sender, EventArgs e)
|
|
{
|
|
this.WindowState = FormWindowState.Maximized;
|
|
}
|
|
}
|
|
}
|