Ejemplo n.º 1
0
        public void frmSplashScreen_Load(object sender, System.EventArgs e)
        {
            try
            {
                AppDomain.CurrentDomain.SetData("KillApp", "");

                this.Show();
                this.Refresh();
                Application.DoEvents();

                this.Cursor = Cursors.AppStarting;

                clsFileDownLoad = new clsFileDownLoad();

                pvtDataTable = new DataTable();

                //Get File Version and Dates from Current Directories
                pvtDataTable = clsFileDownLoad.Get_Files_Directories();

                clsISUtilities = null;
                clsISUtilities = new clsISUtilities(this, "busPayrollLogon");

                pvtDataSet = new DataSet();

                //Local Database
                clsISClientUtilities = new clsISClientUtilities(this, "busClientPayrollLogon");
#if (DEBUG)
                //this.txtUserId.Text = "JOHNNYH";
                //this.txtPassword.Text = "JESUS*01";
                this.txtUserId.Text   = "Interact";
                this.txtPassword.Text = "tcaretni";
                //this.txtUserId.Text = "gary";
                //this.txtPassword.Text = "garylr";
                //this.txtUserId.Text = "errol";
                //this.txtPassword.Text = "errol";
#endif
                this.txtUserId.Enabled   = true;
                this.txtPassword.Enabled = true;
                this.btnOK.Enabled       = true;

                this.txtUserId.Focus();
#if (DEBUG)
                SendKeys.Send("{ENTER}");
#endif

                this.Cursor = Cursors.Default;
            }
            catch (Exception eException)
            {
                clsISUtilities.ErrorHandler(eException);
                this.Close();
            }
        }
        public void frmSplashScreen_Load(object sender, System.EventArgs e)
        {
            try
            {
                AppDomain.CurrentDomain.SetData("KillApp", "");

                this.Show();
                this.Refresh();
                Application.DoEvents();
                this.Focus();

                this.Cursor = Cursors.AppStarting;

                clsFileDownLoad = new clsFileDownLoad();

                pvtDataTable = new DataTable();

                //Get File Version and Dates from Current Directories
                pvtDataTable = clsFileDownLoad.Get_Files_Directories();

                pvtDataSet = new DataSet();

                //Local Database
                clsISClientUtilities = new clsISClientUtilities(this, "busClientPayrollLogon");

                //try
                //{
                //    //Try to Get DB Up (LocalDB)
                //    object[] objParm = null;

                //    clsISClientUtilities.DynamicFunction("Logon_Client_DataBase", objParm, false);
                //}
                //catch (Exception ex)
                //{
                //}
#if (DEBUG)
                //this.txtUserId.Text = "HelenaLR";
                //this.txtPassword.Text = "monster";
                this.txtUserId.Text   = "Interact";
                this.txtPassword.Text = "tcaretni";

                //this.txtUserId.Text = "migs";
                //this.txtPassword.Text = "migs";

                //this.txtUserId.Text = "CasperB";
                //this.txtPassword.Text = "DRIKKIE69";

                //this.txtUserId.Text = "johnnyh";
                //this.txtPassword.Text = "jesus*01";

                //this.txtUserId.Text = "henk";
                //this.txtPassword.Text = "henk";

                //this.txtUserId.Text = "gary";
                //this.txtPassword.Text = "garylr";
                //this.txtUserId.Text = "errol";
                //this.txtPassword.Text = "errol";
#endif
                this.txtUserId.Enabled     = true;
                this.txtPassword.Enabled   = true;
                this.btnOK.Enabled         = true;
                this.btnConnection.Enabled = true;

                this.txtUserId.Focus();
#if (DEBUG)
                btnOK_Click(sender, e);
#endif
                this.Cursor = Cursors.Default;

                this.Focus();
            }
            catch (Exception eException)
            {
                clsISUtilities.ErrorHandler(eException);
                this.Close();
            }
        }