aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Program.cs
blob: acce8165c269e5a2cbae82f33e5f4923353376aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Windows.Forms;
using ShiftOS.Main.ShiftOS;

namespace ShiftOS.Main
{
	static class Program
	{
		/// <summary>
		///     The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);



            bool terminalMode = true;
            if (terminalMode)
            {
                Form terminalForm = new Form();
                ShiftOS.Apps.Terminal term = new ShiftOS.Apps.Terminal();
                terminalForm.Controls.Add(term);
                terminalForm.FormBorderStyle = FormBorderStyle.None;
                terminalForm.WindowState = FormWindowState.Maximized;
                term.Dock = DockStyle.Fill;
                //terminalForm.Show();
                Application.Run(terminalForm);
            }
            else
            {
                Application.Run(new Desktop());
            }
        }
	}
}