private void RankingList_BT_Click(object sender, EventArgs e) { this.Controls.Clear(); menu menu = new menu() { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.Controls.Add(menu); menu.Show(); }
private void RETURN_Click(object sender, EventArgs e) { this.timer1.Stop(); this.Controls.Clear(); menu menu = new menu() { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.Controls.Add(menu); menu.Show(); }
private void BTlogin_Click(object sender, EventArgs e) { Database db = new Database(TBusername.Text.ToString(), TBpassword.Text.ToString()); bool select = db.Select_User(); if (select == true) { username = TBusername.Text.ToString(); this.Controls.Clear(); menu menu = new menu() { TopLevel = false, FormBorderStyle = FormBorderStyle.None }; this.Controls.Add(menu); menu.Show(); } else { MessageBox.Show("用户名或密码错误!"); } }