Ejemplo n.º 1
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     if (Ipadres)
     {
         COMPortHelper.changecomport(TextBox2.Text, TextBox1.Text); // vul het juist IP-adres in bij de juiste comport
     }
     else
     {
         COMPortHelper.changehostname(TextBox2.Text, TextBox1.Text); // vul  het juiste hostname  in bij de juiste comport
     }
 }
Ejemplo n.º 2
0
        protected void SelectButton_Click(object sender, EventArgs e)
        {
            bool   status = COMPortHelper.IsServiceRunning();
            Button button = sender as Button;

            if (rp.projects[Convert.ToInt32(button.ID)].ipaddress.Equals(""))
            {
                TextBox1.Text = rp.projects[Convert.ToInt32(button.ID)].hostname; // als IP-adres leeg is gebruik hostname
                Ipadres       = false;
            }
            else
            {
                TextBox1.Text = rp.projects[Convert.ToInt32(button.ID)].ipaddress;
                Ipadres       = true;
            }
            TextBox2.Text = rp.projects[Convert.ToInt32(button.ID)].programtolaunch; // vul in de textbox in welk programma we gebruiken
        }