private void Login_Activated(object sender, EventArgs e) { if (User.UserName != "") { LoadForm(); this.Hide(); fMain PTLE = new fMain(); PTLE.Show(); } else { this.Show(); } }
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(); }