Пример #1
0
        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();
        }
Пример #2
0
        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();
        }
Пример #3
0
        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("用户名或密码错误!");
            }
        }