Наследование: MonoBehaviour
Пример #1
0
        private void frmSplash_Load(object sender, EventArgs e)
        {
            try
            {
                //Attempt to open a connection to verify the presence of the database
                lblConnection.Text = "Checking connection...";

                string        connectionString;
                SqlConnection connection;

                connectionString = @"Data Source={SQL Server};SERVER=Nsccsqlinst16.nscc.edu;Database=CITC_CTEAM;UID=CITC_CTEAM;PWD=ITROCKS;";
                connection       = new SqlConnection(connectionString);
                connection.Open();

                //Check to see if a connection was established.
                if (connection != null && connection.State == ConnectionState.Open)
                {
                    lblConnection.Text = "Connection established!";
                }
                connection.Close();
            }
            catch (SqlException ex)
            {
                //If no connection, stop the timer and throw an error.
                SplashTimer.Stop();
                MessageBox.Show("Connection to the database could not be established. \nPlease try again later.\n\n"
                                + ex.Message);
                this.Close();
            }
        }
Пример #2
0
 private void SplashTimer_Tick(object sender, EventArgs e)
 {
     prgSplash.Increment(2);
     if (prgSplash.Value == 100)
     {
         SplashTimer.Stop();
     }
 }
Пример #3
0
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            SplashTimer.Stop();
            Main Main = new Main();

            Main.Show();
            Hide();
        }
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            SplashTimer.Stop();
            SelectionForm select = new SelectionForm();

            select.Show();
            this.Hide();
        }
Пример #5
0
        private void SplashScreen_KeyDown(object sender, KeyEventArgs e)
        {
            SplashTimer.Stop();
            Main Main = new Main();

            Main.Show();
            Hide();
        }
Пример #6
0
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            frmLogin login = new frmLogin();

            login.Show();
            SplashTimer.Stop();
            this.Hide();
        }
Пример #7
0
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            SplashTimer.Stop();
            this.Hide();
            SecureBinHome MainPage = new SecureBinHome();

            MainPage.Show();
        }
Пример #8
0
        public void ShowForm3()

        {
            // The minimum amount of time the splash screen
            // will be visible.
            SplashTimer.Enabled  = true;
            SplashTimer.Interval = 2000;
            SplashTimer.Start();
        }
Пример #9
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Splash);

            SplashTimer wavetimer = new SplashTimer(SplashTimer.SPLASH_DISPLAY_LENGTH + 500, 500);

            wavetimer.OnCompleted += Wavetimer_OnCompleted;

            wavetimer.Start();
        }
 private void SplashTimer_Tick(object sender, EventArgs e)
 {
     progress       += 10;
     lblLoading.Text = String.Format("Loading {0}%...", progress);
     Logo2.Visible   = false;
     SplashAnimator3.Show(Logo2);
     if (progress >= 110)
     {
         SplashTimer.Stop();
         frmLogin log = new frmLogin();
         this.Hide();
         SplashAnimator2.Show(log);
     }
 }
Пример #11
0
        private void Timer1_Tick(object sender, EventArgs e)
        {
            //Second = Second + 1;
            //if (Second >= 10)
            //{
            //    SplashTimer.Stop(); // Timer stops functioning
            //    HideSplash();
            //}
            Console.Out.WriteLine("timer clicked");
            SplashTimer.Stop();
            this.Hide();
            Form1 mainform = new Form1();

            mainform.Show();
        }
 private void frmSplashScreen_Load(object sender, EventArgs e)
 {
     refresh();
     SplashTimer.Start();
 }
Пример #13
0
 private void SplashScreen_Load(object sender, EventArgs e)
 {
     SplashTimer.Start();
 }
Пример #14
0
 public SplashScreen()
 {
     InitializeComponent();
     Main = new MainForm();
     SplashTimer.Start();
 }
Пример #15
0
 private void SplashScreen_KeyPress(object sender, KeyPressEventArgs e)
 {
     SplashTimer.Stop();
     Main.Show();
     Hide();
 }
Пример #16
0
 private void pictureBox1_Click(object sender, System.EventArgs e)
 {
     SplashTimer.Stop();
     Main.Show();
     Hide();
 }
Пример #17
0
 private void SplashTimer_Tick(object sender, System.EventArgs e)
 {
     SplashTimer.Stop();
     Main.Show();
     Hide();
 }
 /// <summary>
 /// This form will be visible for 3 secounds then it will be hidden and
 /// timer will be stopped then show the start form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void SplashTimer_Tick(object sender, EventArgs e)
 {
     this.Hide();
     SplashTimer.Stop();
     Program.startForm.Show();
 }
 private void SplashForm_Load(object sender, EventArgs e)
 {
     SplashTimer.Start();    // start timer
 }
Пример #20
0
 public SplashScreen()
 {
     InitializeComponent();
     SplashTimer.Start();
 }
Пример #21
0
 private void SplashScreen_Load(object sender, EventArgs e)
 {
     VersionLabel.Text = ConfigurationSettings.AppSettings["Version"];
     SplashTimer.Start();
 }