示例#1
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         this.Hide();
         SingleCamera singleCamera = new SingleCamera();
         //listForm.Add("SingleCamera",singleCamera);
         User.UserService test = new User.UserService();
         UserEntity       user = test.CheckLogin(this.skinTextBox1.Text, this.skinTextBox1.Text);
         if (user.LoginOk)
         {
             singleCamera.Show();
         }
         else
         {
             if (MessageBox.Show(user.LoginMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Information) == DialogResult.OK)
             {
                 this.Show();
             }
         }
     }
     else if (radioButton2.Checked)
     {
         this.Hide();
         DoubleCamera doubleCamera = new DoubleCamera();
         //listForm.Add("DoubleCamera",doubleCamera);
         doubleCamera.Show();
     }
     else if (radioButton3.Checked)
     {
         MessageBox.Show("还没做呢!");
     }
 }
示例#2
0
 private void Button1_Click(object sender, EventArgs e)
 {
     if (radioButton1.Checked)
     {
         this.Hide();
         SingleCamera singleCamera = new SingleCamera();
         singleCamera.Show();
     }
     else if (radioButton2.Checked)
     {
         this.Hide();
         DoubleCamera doubleCamera = new DoubleCamera();
         doubleCamera.Show();
     }
     else if (radioButton3.Checked)
     {
         MessageBox.Show("还没做呢!");
     }
 }