コード例 #1
0
ファイル: Main_Form.cs プロジェクト: yychieh1031/HsiuHsien
 //
 // Create Character
 //
 private void button10_Click(object sender, System.EventArgs e)
 {
     // Create Character option
     if (String.IsNullOrEmpty(act.Act_Ch_No))
     {
         Ch_Sts.create(ch, ref act);
         #region textbox/button enable
         textBox2.Enabled  = true;
         textBox3.Enabled  = true;
         textBox4.Enabled  = true;
         textBox5.Enabled  = true;
         textBox6.Enabled  = true;
         textBox7.Enabled  = true;
         textBox8.Enabled  = true;
         textBox9.Enabled  = true;
         textBox10.Enabled = true;
         textBox11.Enabled = true;
         textBox12.Enabled = true;
         textBox13.Enabled = true;
         textBox14.Enabled = true;
         textBox15.Enabled = true;
         textBox16.Enabled = true;
         textBox17.Enabled = true;
         button1.Enabled   = true;
         button2.Enabled   = true;
         button3.Enabled   = true;
         button4.Enabled   = true;
         button5.Enabled   = true;
         button6.Enabled   = true;
         button7.Enabled   = true;
         button8.Enabled   = true;
         button9.Enabled   = true;
         #endregion
         ch           = Ch_Sts.get(act.Act_Ch_No);
         btrpt.Ch_Dtl = ch;
         UIDisplay(btrpt);
         button10.Text = "Logout";
         // Initial Room set
         Ro_Rou.post(btrpt);
         btrpt.room = Ro_Sts.get(btrpt);
         output.AppendText("You are in " + btrpt.room.Ro_Nm);
         output.AppendText(Environment.NewLine);
     }
     else  // Logout option
     {
         btrpt.Ch_Dtl.Ch_Nm = "";
         Login_Form login = new Login_Form(this);
         login.Owner = this;
         login.Show();
     }
 }