static void Main(string[] args) { s_commandLineArgs = args; try { initializeLogging(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // for now, we create the most simple version of IILPanelForm and IILShellControl and instantiate the ILView with them var mainForm = new ILMainFormSimple(); ILView view = new ILView(mainForm, new ILShellForm(), mainForm); view_Load(view, EventArgs.Empty); Application.Run(view); } catch (Exception exc) { System.Diagnostics.Trace.Flush(); var dlgRes = MessageBox.Show(@"ILView has encountered an error and will be closed now. Please help us improve ILView! Information about the error can be sent to us automatically after this window was closed. The information will consist out of the contents of the file '" + ErrorlogName + @"' which records trace messages generated by ILView during run. If you do not wish to have ILView sent the information, click on [Cancel] now. Please sent the file '" + ErrorlogName + @"' by email to [email protected] than. This enables us to look into the problem and provide fixes for it. Otherwise click [OK] to sent the content of the file now. We apologize any inconvenience!", "Hoops! There is something broken! :/", MessageBoxButtons.OKCancel); if (dlgRes == DialogResult.OK) { string log = "(empty)"; if (System.IO.File.Exists(ErrorlogName)) { log = System.IO.File.ReadAllText(ErrorlogName); } } } }
static void Main(string[] args) { s_commandLineArgs = args; initializeLogging(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // for now, we create the most simple version of IILPanelForm and IILShellControl and instantiate the ILView with them var mainForm = new ILMainFormSimple(); ILView view = new ILView(mainForm, new ILShellForm(), mainForm); view_Load(view,EventArgs.Empty); Application.Run(view); }
static void Main(string[] args) { s_commandLineArgs = args; initializeLogging(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // for now, we create the most simple version of IILPanelForm and IILShellControl and instantiate the ILView with them var mainForm = new ILMainFormSimple(); ILView view = new ILView(mainForm, new ILShellForm(), mainForm); view_Load(view, EventArgs.Empty); Application.Run(view); }