Beispiel #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            FormLogin fl = new FormLogin();

            fl.Show();

            Application.Run();
        }
Beispiel #2
0
        //Show Login credentials
        private void ShowLoginInfo(MetroFramework.Controls.MetroTextBox txtUserId, MetroFramework.Controls.MetroTextBox txtPassword)
        {
            txtUserId.Text = this.UserId;

            MessageBox.Show(@"Your Login credentials: " + "\n\n"
                            + "Username: "******"\n"
                            + "Password: " + txtPassword.Text);

            //Take back to login page
            this.Visible = false;
            FormLogin fl = new FormLogin(this.UserId);

            fl.Visible = true;
        }
Beispiel #3
0
 private void BtnOk_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     FormLogin fl = new FormLogin();
     fl.Visible = true;
 }