mirror of
https://github.com/abrendan/smolEdit.git
synced 2025-08-25 22:12:03 +02:00
removed the border around the text box and fixed the "Open With" function
This commit is contained in:
@@ -13,11 +13,24 @@ namespace V_EditorPro
|
||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new MainForm());
|
||||
if (args.Length > 0)
|
||||
{
|
||||
// A file was passed as an argument
|
||||
string filePath = args[0];
|
||||
|
||||
// Create the main form and pass the file path to it
|
||||
Application.Run(new MainForm(filePath));
|
||||
}
|
||||
else
|
||||
{
|
||||
// No file was passed as an argument
|
||||
Application.Run(new MainForm());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user