Esempio n. 1
0
        static void Main()
        {
            try {
                Logger.Logger.MaxFiles = 25;

                Application app = new MASGAU.Application();

                Window win;

                switch (Core.AppMode) {
                    case AppMode.Main:
                        win = new MainWindowNew();
                        break;
                    case AppMode.Restore:
                        win = new MASGAU.Restore.RestoreWindow();
                        break;
                    default:
                        throw new NotSupportedException(Core.AppMode.ToString());
                }

                app.Run(win);

            } catch (Exception e) {
                Logger.Logger.log(e);
                System.Windows.MessageBox.Show("Error while trying to startup:\n" + e.Message + @"Check the log in LocalAppData\MASGAU\logs\");
            }
        }
Esempio n. 2
0
        static void Main()
        {
            try {
                Logger.Logger.MaxFiles = 25;


                Application app = new MASGAU.Application();


                Window win;

                switch (Core.AppMode)
                {
                case AppMode.Main:
                    win = new MainWindowNew();
                    break;

                case AppMode.Restore:
                    win = new MASGAU.Restore.RestoreWindow();
                    break;

                default:
                    throw new NotSupportedException(Core.AppMode.ToString());
                }

                app.Run(win);
            } catch (Exception e) {
                Logger.Logger.log(e);
                System.Windows.MessageBox.Show("Error while trying to startup:\n" + e.Message + @"Check the log in LocalAppData\MASGAU\logs\");
            }
        }