-
Notifications
You must be signed in to change notification settings - Fork 18
/
Program.cs
39 lines (39 loc) · 912 Bytes
/
Program.cs
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
39
/*
* Created by SharpDevelop.
* User: Gheyret Kenji
* Date: 2020/11/16
* Time: 8:59
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
using System;
using System.Windows.Forms;
using System.Collections.Generic;
namespace UyghurEditPP
{
/// <summary>
/// Class with program entry point.
/// </summary>
internal sealed class Program
{
/// <summary>
/// Program entry point.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
try{
MainForm frm = new MainForm();
frm.Show();
if(args.Length==1){
frm.OpenaFile(args[0]);
}
Application.Run(frm);
}catch(Exception ee){
MessageBox.Show(ee.StackTrace,"UyghurEdit++",MessageBoxButtons.OK,MessageBoxIcon.Error);
}
}
}
}