예제 #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()
                    });
                }
            }
        }
예제 #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();
             }
         }
     }
 }
예제 #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();
             }
         }
     }
 }
예제 #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() });
     }
 }