示例#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
文件: MainForm.cs 项目: rpenido/ipcam
 private void btnConfig_Click(object sender, EventArgs e)
 {
     ConfigConnectionForm form = new ConfigConnectionForm();
     form.ShowDialog();
 }