Exemple #1
0
        public Login()
        {
            //create a new thread to run the splash screen
            Thread t = new Thread(new ThreadStart(SplashStart));
            t.Start(); //run the thread
            Thread.Sleep(2500);//how long the splash screen is displayed for.

            InitializeComponent();
            t.Abort(); //close the splash screen thread and load login form
            login = this;
            //@@@@@@REMOVE@@@@@@
            //test login for quick access
            accNumField.Text = "12345";
            accNameField.Text = "Test1";
        }
        public Login LoginParentForm; // create a login parent parameter.

        #endregion Fields

        #region Constructors

        public Select_Account(Login parent, string formNm)
        {
            InitializeComponent();
            this.LoginParentForm = parent; //constructor saves parent as form which created it
            this.formName = formNm;
        }