2018-12-23 20:15:07 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
using ShiftOS.Engine.UI;
|
|
|
|
|
using ShiftOS.Engine.WindowManager;
|
|
|
|
|
|
|
|
|
|
namespace ShiftOS.Main
|
|
|
|
|
{
|
|
|
|
|
public partial class Desktop : Form
|
|
|
|
|
{
|
|
|
|
|
public Desktop()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
foreach (var menuItem in applicationsToolStripMenuItem.DropDownItems.OfType<ToolStripMenuItem>())
|
|
|
|
|
{
|
|
|
|
|
menuItem.BackColor = Color.FromArgb(64,64,64);
|
|
|
|
|
menuItem.ForeColor = Color.White;
|
|
|
|
|
}
|
|
|
|
|
menuStrip1.RenderMode = ToolStripRenderMode.ManagerRenderMode;
|
|
|
|
|
ToolStripManager.Renderer = new ShiftToolStrip();
|
|
|
|
|
this.FormClosed += (o, a) => Application.Exit();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void terminalToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ShiftWM.Init(new Apps.Terminal(), "Terminal", Properties.Resources.iconTerminal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void fileSkimmerToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ShiftWM.Init(new Apps.FileSkimmer(), "FileSkimmer", Properties.Resources.iconFileSkimmer);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void textPadToolStripMenuItem_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
ShiftWM.Init(new Apps.TextPad(), "TextPad", Properties.Resources.iconTextPad);
|
|
|
|
|
}
|
|
|
|
|
|
2018-12-24 00:41:07 -05:00
|
|
|
|
private void breakOutToolStripMenuItem_Click(object sender, EventArgs e)
|
2018-12-23 20:15:07 -05:00
|
|
|
|
{
|
2018-12-24 00:41:07 -05:00
|
|
|
|
ShiftWM.Init(new Apps.Breakout(), "Breakout", null);
|
2018-12-23 20:15:07 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|