private void btnAddCam_Click(object sender, EventArgs e) { ConfigConnectionForm form = new ConfigConnectionForm(null); if (form.ShowDialog() == DialogResult.OK) { list.Add(form.ConfigData); } }
private void btnEdit_Click(object sender, EventArgs e) { if (listView1.SelectedIndices.Count != 1) { MessageBox.Show("Selecione uma câmera"); return; } int selectedIndex = listView1.SelectedIndices[0]; ConnectionConfigData conf = list[selectedIndex]; ConfigConnectionForm form = new ConfigConnectionForm(conf); form.ShowDialog(); }
private void btnConfig_Click(object sender, EventArgs e) { ConfigConnectionForm form = new ConfigConnectionForm(); form.ShowDialog(); }