예제 #1
0
    private void quitChronojump(bool deleteRunningFileName)
    {
        if (deleteRunningFileName)
        {
            try {
                File.Delete(runningFileName);
            } catch {
                //done because if database dir is moved in a chronojump conversion
                //(eg from before installer to installjammer) maybe it will not find this runningFileName
            }
        }

        if (splashWin != null)
        {
            splashWin.Destroy();
        }
        else
        {
            SplashWindow.Hide();
        }

        if (!quitNowCjTwoTimes)
        {
            Log.End();
        }

        Application.Quit();
    }
예제 #2
0
    private void on_splash_ended(object o, EventArgs args)
    {
        LogB.Information("splash screen going to END");
        fakeSplashButton.Clicked -= new EventHandler(on_splash_ended);
        if (splashWin != null)
        {
            splashWin.Destroy();
        }
        else
        {
            SplashWindow.Hide();
        }

        LogB.Information("splash screen ENDED!");
        readMessageToStart();
    }