Initial commit

This commit is contained in:
Stone-Red-Code
2021-10-08 12:48:48 +02:00
commit c40d1f45e0
25 changed files with 2124 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
namespace YesNt.CodeEditor
{
internal class Program
{
private static void Main(string[] args)
{
TextEditor textEditor;
Console.CancelKeyPress += Console_CancelKeyPress;
if (args.Length > 0)
{
textEditor = new TextEditor(args[0]);
}
else
{
textEditor = new TextEditor();
}
textEditor.Run();
}
private static void Console_CancelKeyPress(object sender, ConsoleCancelEventArgs e)
{
e.Cancel = true;
}
}
}