Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     string str="&#GET" ;
     if (radioButton1.Checked)
     {
         str = str + "1";
         MainWindow.Client.Send(Encoding.UTF8.GetBytes(str));
         TransPanel tp = new TransPanel();
         tp.Show();
         this.Close();
     }
     if (radioButton2.Checked)
     {
         str = str + "2";
         MainWindow.Client.Send(Encoding.UTF8.GetBytes(str));
         TransPanel tp = new TransPanel();
         tp.Show();
         this.Close();
     }
     if (radioButton3.Checked)
     {
         str = str + "3";
         MainWindow.Client.Send(Encoding.UTF8.GetBytes(str));
         TransPanel tp = new TransPanel();
         tp.Show();
         this.Close();
     }
 }
Beispiel #2
0
 private void CallForm(Socket client, Power p)
 {
     switch (p)
     {
         case Power.管理员:
             Admin AdminForm = new Admin((object)client);//调用管理员界面 并将client 传递过去
             AdminForm.Show();
             break;
         case Power.审核人员:
             break;
         case Power.翻译人员:
             TransPanel TP = new TransPanel((object)client, textBox_user.Text);
             TP.Show();
             break;
         default:
             return;
             break;
     }
     this.Hide();
 }