Example #1
0
 private void Login_Activated(object sender, EventArgs e)
 {
     if (User.UserName != "")
     {
         LoadForm();
         this.Hide();
         fMain PTLE = new fMain();
         PTLE.Show();
     }
     else
     {
         this.Show();
     }
 }
Example #2
0
        private void lbContinue_Click(object sender, EventArgs e)
        {
            if (User.UserName == "")
            {
                lblName.Text = lblName.Text.Trim();
                if (lblName.Text == "" || lblName.Text == "Enter your name")
                {
                    pnlBackground_Click(pnlBackground, e);
                    return;
                }
                else
                {
                    User.UserName = lblName.Text;
                }
            }
            LoadForm();
            this.Hide();
            fMain f = new fMain();

            f.Show();
        }