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