private void button1_Click(object sender, EventArgs e)
        {
           username = nameTextBox.Text;
            IP = ipTextBox.Text;
            try
            {
                port = Convert.ToInt32(portTextBox.Text);
            }
            catch (Exception z)
            {
                label5.Visible = true;
                label5.Text = "ERROR PORT NUMBER NOT VALID";
            }
            try
            {
                pin = Convert.ToInt32(portTextBox.Text);
            }
            catch (Exception x)
            {
                label5.Visible = true;
                label5.Text = "PIN MUST BE A SERIES OF 4 DIGET NUMBERS!";
            }
            TTS tts = new TTS();

        }
예제 #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     username = nameTextBox.Text;
     IP       = ipTextBox.Text;
     try
     {
         port = Convert.ToInt32(portTextBox.Text);
     }
     catch (Exception z)
     {
         label5.Visible = true;
         label5.Text    = "ERROR PORT NUMBER NOT VALID";
     }
     try
     {
         pin = Convert.ToInt32(portTextBox.Text);
     }
     catch (Exception x)
     {
         label5.Visible = true;
         label5.Text    = "PIN MUST BE A SERIES OF 4 DIGET NUMBERS!";
     }
     TTS tts = new TTS();
 }