Beispiel #1
0
        private void loginForm_Load(object sender, EventArgs e)
        {
            Button[] arrButton = new Button[2];

            arrButton[0] = loginButton;
            arrButton[1] = resetbutton;
            gutil.reArrangeButtonPosition(arrButton, arrButton[0].Top, this.Width);

            gutil.reArrangeTabOrder(this);

            if (!gCrypto.checkLicenseFile(licenseFilePath))
            {
                gutil.showError("LICENSE FILE NOT FOUND");
                Application.Exit();
            }

            if (!DS.firstMySqlConnect()) //one time checked at load application
            {
                gutil.showError("DB fail to connect!");

                createConfigFileForm displayedForm = new createConfigFileForm();
                displayedForm.ShowDialog();
            }

            userNameTextBox.Select();
        }