SplashScreen.ShowSplash C# (CSharp) 메소드

ShowSplash() 공개 정적인 메소드

public static ShowSplash ( ) : void
리턴 void
    public static void ShowSplash()
    {
        Thread t = new Thread(
            delegate(object obj)
            {
                instance = new SplashScreen();
                instance.ShowDialog();
            });
        t.IsBackground = true;
        t.Start();
    }

Same methods

SplashScreen::ShowSplash ( string title, string message ) : void

Usage Example

예제 #1
0
    static public void StartConfig()
    {
        //Debug.Assert(false);
        try
        {
            SplashScreen.ShowSplash();

            string[] args = Environment.GetCommandLineArgs();
            if (args.Length > 1 && (args[1].ToLower() == "/u" || args[1].ToLower() == "-u"))
            {
                //forced uninstall
                if (Environment.GetEnvironmentVariable("CSSCRIPT_DIR") == null)
                {
                    MessageBox.Show("Cannot perform uninstall operation.\nCS-Script is not currently installed.", "CS-Script Configuration");
                }
                else
                {
                    CSScriptInstaller.UnInstall();
                }
            }
            else
            {
                string rootDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
#if DEBUG
                if (Environment.GetEnvironmentVariable("CSSCRIPT_DIR") != null)
                {
                    rootDir = Environment.GetEnvironmentVariable("CSSCRIPT_DIR");
                }
#endif
                string csws = Path.Combine(rootDir, "csws.exe");

                string configScript = Path.Combine(rootDir, @"lib\config.cs");

                args    = new string[2];
                args[0] = "/dbg";
                args[1] = configScript;

                AppDomain.CurrentDomain.ExecuteAssembly(Path.Combine(rootDir, @"csws.exe"), args);

                //Cannot use process as it will start CLR specified in csws.exe.config
                //but it is required to start ConfigConsole under the highest CLR available
                //Process.Start(csws, "\"" + configScript + "\"");
            }
        }
        catch (UnauthorizedAccessException e)
        {
            MessageBox.Show(e.Message, "CS-Script Configuration");
        }
        catch (Exception e)
        {
            MessageBox.Show(e.ToString(), "CS-Script Configuration");
        }
    }
All Usage Examples Of SplashScreen::ShowSplash