private void btnLaunch_Click(object sender, EventArgs e)
        {
            this.Hide();
            Player_Launch a = new Player_Launch(va, username);

            a.Show();
        }
示例#2
0
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            if (itype == "GSDZombie")
            {
                PointCardDatabaseDataSetTableAdapters.ZombieTableAdapter a = new PointCardDatabaseDataSetTableAdapters.ZombieTableAdapter();
                a.Insert(username, txtName.Text, "0");
                if (va == 1)
                {
                    MessageBox.Show("创建成功!");
                }
                else
                if (va == 1)
                {
                    MessageBox.Show("創建成功!");
                }
                else
                {
                    MessageBox.Show("Create Successful!");
                }
                Player_Launch b = new Player_Launch(va, username);
                this.Hide();
                b.Show();
            }

            else
            if (itype == "GSDWorld")
            {
                PointCardDatabaseDataSetTableAdapters.WorldTableAdapter ab = new PointCardDatabaseDataSetTableAdapters.WorldTableAdapter();
                ab.Insert(username, txtName.Text, "0");
                if (va == 1)
                {
                    MessageBox.Show("创建成功!");
                }
                else
                if (va == 1)
                {
                    MessageBox.Show("創建成功!");
                }
                else
                {
                    MessageBox.Show("Create Successful!");
                }
                Player_Launch b = new Player_Launch(va, username);
                this.Hide();
                b.Show();
            }
        }