Пример #1
0
        private static void Main()
        {
            Log = new GorgonLog("Writing", "Tape_Worm");

            Log.LogStart();

            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                WriteDirectory = new DirectoryInfo(Path.Combine(Path.GetTempPath(), "Writing"));

                if (!WriteDirectory.Exists)
                {
                    WriteDirectory.Create();
                    WriteDirectory.Refresh();
                }

                Application.Run(new Form());
            }
            catch (Exception ex)
            {
                GorgonExample.HandleException(ex);
            }
            finally
            {
                Log.LogEnd();
            }
        }
Пример #2
0
        private static void Main()
        {
            Log = new GorgonLog("MultiSource", "Tape_Worm");
            Log.LogStart();

            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new FormMain());
            }
            catch (Exception ex)
            {
                ex.Catch(_ => GorgonDialogs.ErrorBox(null, _), Log);
            }
            finally
            {
                Log.LogEnd();
            }
        }