Ejemplo n.º 1
0
 private void buttonAddCamera_Click(object sender, EventArgs e)
 {
     if (advTreeVideoSupplier.SelectedNode != null)
     {
         FormAddEditCamera f = new FormAddEditCamera();
         f.VideoSupplierId   = Convert.ToUInt32(advTreeVideoSupplier.SelectedNode.Cells[0].Text);
         f.VideoSupplierNmae = advTreeVideoSupplier.SelectedNode.Cells[1].Text;
         f.ShowDialog();
         m_viewModel.FlushCameraList();
         advTreeCamera.DataSource = m_viewModel.GetCameraListByVideoSupplierID(f.VideoSupplierId);
     }
 }