Exemplo n.º 1
0
        private void buttonAddOscClient_Click(object sender, EventArgs e)
        {
            OscClientDialog dialog = new OscClientDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                if (!string.IsNullOrEmpty(dialog.GetAddress()) && dialog.GetPort() > 0)
                {
                    this.config.Osc.PredefinedClients.Add(new PredefinedClient()
                    {
                        Address = dialog.GetAddress(), Port = dialog.GetPort()
                    });
                }
            }
        }
Exemplo n.º 2
0
 private void listBox4_Click(object sender, EventArgs e)
 {
     if (listBox4.SelectedItems.Count > 0)
     {
         OscClientDialog dialog = new OscClientDialog();
         dialog.SetOscClient(((PredefinedClient)listBox4.SelectedItem).Address, ((PredefinedClient)listBox4.SelectedItem).Port);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(dialog.GetAddress()) && dialog.GetPort() > 0)
             {
                 ((PredefinedClient)listBox4.SelectedItem).Address = dialog.GetAddress();
                 ((PredefinedClient)listBox4.SelectedItem).Port    = dialog.GetPort();
             }
         }
     }
 }
Exemplo n.º 3
0
 private void listBox4_Click(object sender, EventArgs e)
 {
     if (listBox4.SelectedItems.Count > 0)
     {
         OscClientDialog dialog = new OscClientDialog();
         dialog.SetOscClient(((PredefinedClient)listBox4.SelectedItem).Address, ((PredefinedClient)listBox4.SelectedItem).Port);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             if (!string.IsNullOrEmpty(dialog.GetAddress()) && dialog.GetPort() > 0)
             {
                 ((PredefinedClient)listBox4.SelectedItem).Address = dialog.GetAddress();
                 ((PredefinedClient)listBox4.SelectedItem).Port = dialog.GetPort();
             }
         }
     }
 }
Exemplo n.º 4
0
 private void buttonAddOscClient_Click(object sender, EventArgs e)
 {
     OscClientDialog dialog = new OscClientDialog();
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         if (!string.IsNullOrEmpty(dialog.GetAddress()) && dialog.GetPort() > 0)
             this.config.Osc.PredefinedClients.Add(new PredefinedClient() { Address = dialog.GetAddress(), Port = dialog.GetPort() });
     }
 }