pascalabcnet/Utils/NodesGeneratorNew/Scintilla/Sources/SCide/Program.cs
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

59 lines
1.5 KiB
C#

#region Using Directives
using System;
using System.IO;
using System.Reflection;
using System.Windows.Forms;
#endregion Using Directives
namespace SCide
{
internal static class Program
{
#region Fields
private static MainForm _mainForm = null;
#endregion Fields
#region Methods
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
private static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm(args));
}
#endregion Methods
#region Properties
public static string Title
{
get
{
object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
if (attributes.Length > 0)
{
AssemblyTitleAttribute titleAttribute = (AssemblyTitleAttribute)attributes[0];
if (!String.IsNullOrEmpty(titleAttribute.Title))
return titleAttribute.Title;
}
// If there was no Title attribute, or if the Title attribute was the empty string, return the .exe name
return Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().CodeBase);
}
}
#endregion Properties
}
}