Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (radioButtonMMCM.Checked)
     {
         MMCM_RemoteControlPanel remotePanel = new MMCM_RemoteControlPanel();
         while (!remotePanel.Initialise(txtName.Text))
         {
             ;
         }
         remotePanel.Show();
     }
     else if (radioButtonCTPC.Checked)
     {
         CTPC_RemoteControlPanel remotePanel = new CTPC_RemoteControlPanel();
         while (!remotePanel.Initialise(txtName.Text))
         {
             ;
         }
         remotePanel.Show();
     }
 }