Ejemplo n.º 1
0
        public Splash_Screen()
        {
            InitializeComponent();
            this.Show();
            SetPerPixelBitmapFilename();
            for (int x = 0; x < 256; x++)
            {
                num = (byte)x;
                this.SetBitmap(bitmap, num);
            }
            #region /// These are the mouse moving events
            this.MouseDown += new MouseEventHandler(Splash_MouseDown);
            this.MouseMove += new MouseEventHandler(Splash_MouseMove);
            #endregion
            Splash_Timer.Start();
            Thread.Sleep(2000);

            Console.WriteLine("UserName: {0}", Environment.UserName);

            /*string RegistrationName = FIRST_NAME + " " + LAST_NAME;
             * if(SoftwareRegistration == RegistrationName && FIRSTRUN_SWITCH == 1)
             * {
             *
             * }
             * Console.WriteLine("Access Database");*/
        }
Ejemplo n.º 2
0
 // This is the timer event for the splash screen
 private void Splash_Timer_Tick(object sender, EventArgs e)
 {
     if (SplashDelay > 0)
     {
         SplashDelay = SplashDelay - 1;
     }
     else
     {
         Splash_Timer.Stop();
         this.Hide();
     }
 }