#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 /// /// The main entry point for the application. /// [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 } }