Exemplo n.º 1
0
        private static void Main()
        {
            Log.Logger = new LoggerConfiguration()
                         .MinimumLevel.Information()
                         .WriteTo.Console()
                         .WriteTo.File("log.txt", rollingInterval: RollingInterval.Day)
                         .CreateLogger();
            NBug.Settings.ReleaseMode = true;
            NBug.Settings.StoragePath = NBug.Enums.StoragePath.CurrentDirectory;
            NBug.Settings.UIMode      = NBug.Enums.UIMode.Full;

            Core.DocManager.Inst.SearchAllSingers();
            var pm = new Core.PartManager();

            var app = new App();

            if (!Debugger.IsAttached)
            {
                AppDomain.CurrentDomain.UnhandledException += NBug.Handler.UnhandledException;
                app.DispatcherUnhandledException           += NBug.Handler.DispatcherUnhandledException;
            }
            var window = new UI.MainWindow();

            app.Run(window);
        }
Exemplo n.º 2
0
        static void Main()
        {
            //Thread backgroundThread = new Thread(new ThreadStart(() => { }));
            //backgroundThread.Start();

            Core.DocManager.Inst.SearchAllSingers();
            var pm = new OpenUtau.Core.PartManager();
            App app = new App();
            UI.MainWindow window = new UI.MainWindow();
            app.Run(window);
        }
Exemplo n.º 3
0
        static void Main()
        {
            //Thread backgroundThread = new Thread(new ThreadStart(() => { }));
            //backgroundThread.Start();

            Core.DocManager.Inst.SearchAllSingers();
            var pm  = new OpenUtau.Core.PartManager();
            App app = new App();

            UI.MainWindow window = new UI.MainWindow();
            app.Run(window);
        }