Пример #1
0
        private void btnAddCam_Click(object sender, EventArgs e)
        {
            ConfigConnectionForm form = new ConfigConnectionForm(null);
            if (form.ShowDialog() == DialogResult.OK)
            {
                list.Add(form.ConfigData);

            }
        }
Пример #2
0
        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();
        }
Пример #3
0
 private void btnConfig_Click(object sender, EventArgs e)
 {
     ConfigConnectionForm form = new ConfigConnectionForm();
     form.ShowDialog();
 }