2019-08-27 17:44:31 +02:00
|
|
|
|
using LaptopSimulator2015.Properties;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Drawing;
|
2019-07-23 14:54:05 +02:00
|
|
|
|
using System.IO;
|
2019-08-01 22:42:35 +02:00
|
|
|
|
#if !DEBUG
|
2019-07-23 14:54:05 +02:00
|
|
|
|
using System.Runtime.InteropServices;
|
2019-08-01 22:42:35 +02:00
|
|
|
|
#endif
|
2019-07-27 20:57:23 +02:00
|
|
|
|
using System.Text;
|
2019-07-23 14:54:05 +02:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace LaptopSimulator2015
|
|
|
|
|
{
|
|
|
|
|
class Program
|
|
|
|
|
{
|
2019-08-27 17:44:31 +02:00
|
|
|
|
public static Splash splash;
|
2019-07-23 14:54:05 +02:00
|
|
|
|
static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
2019-09-14 14:00:28 +02:00
|
|
|
|
Settings.Load();
|
2019-07-23 14:54:05 +02:00
|
|
|
|
Console.Title = "LaptopSimulator2015";
|
2019-08-27 17:44:31 +02:00
|
|
|
|
splash = new Splash();
|
|
|
|
|
splash.Show();
|
|
|
|
|
Thread.Sleep(2000);
|
2019-09-14 14:00:28 +02:00
|
|
|
|
#if !DEBUG
|
2019-07-23 14:54:05 +02:00
|
|
|
|
FileStream filestream = new FileStream(".log", FileMode.Create);
|
2019-07-27 20:57:23 +02:00
|
|
|
|
StreamWriter streamwriter = new StreamWriter(filestream);
|
2019-07-23 14:54:05 +02:00
|
|
|
|
streamwriter.AutoFlush = true;
|
|
|
|
|
Console.SetOut(streamwriter);
|
|
|
|
|
Console.SetError(streamwriter);
|
|
|
|
|
#endif
|
|
|
|
|
Console.BackgroundColor = ConsoleColor.Black;
|
|
|
|
|
Console.ForegroundColor = ConsoleColor.Green;
|
|
|
|
|
Console.Clear();
|
|
|
|
|
Console.WriteLine(strings.consoleStarting);
|
2019-09-28 19:05:06 +02:00
|
|
|
|
while (Settings.level == -1)
|
|
|
|
|
Application.Run(new Tutorial());
|
2019-07-23 14:54:05 +02:00
|
|
|
|
Application.Run(new FakeDesktop());
|
|
|
|
|
Console.WriteLine(strings.consoleQuit);
|
|
|
|
|
Thread.Sleep(1000);
|
|
|
|
|
Console.Clear();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|