예제 #1
0
        static void Main()
        {
            log.Info("Starting Program");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            IntPtr WINDOW_HANDLER = Win32API.FindWindow( null , SecuruStikMessageQueue.MainFormText );
            if ( WINDOW_HANDLER == IntPtr.Zero )
            {
                SecuruStikSplashScreen splashScreen = new SecuruStikSplashScreen();
                Application.Run( splashScreen );

                Application.Run( new SecuruStik_MainForm( SecuruStikSplashScreen.DropBoxUser ) );
            }
            else
            {
                log.Info("App already detected to be running.");
                Win32API.BringWindowToTopOrCreate(DropBoxController.Local_SecFolder);
            }
        }
예제 #2
0
        static void Main()
        {
            log.Info("Starting Program");

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            IntPtr WINDOW_HANDLER = Win32API.FindWindow(null, SecuruStikMessageQueue.MainFormText);

            if (WINDOW_HANDLER == IntPtr.Zero)
            {
                SecuruStikSplashScreen splashScreen = new SecuruStikSplashScreen();
                Application.Run(splashScreen);

                Application.Run(new SecuruStik_MainForm(SecuruStikSplashScreen.DropBoxUser));
            }
            else
            {
                log.Info("App already detected to be running.");
                Win32API.BringWindowToTopOrCreate(DropBoxController.Local_SecFolder);
            }
        }