Exemple #1
0
 private void advTree4_MarkupLinkClick(object sender, DevComponents.AdvTree.MarkupLinkClickEventArgs e)
 {
     if (e.HRef == "del")
     {
         m_viewModel.DelVideoSupplierByID(Convert.ToUInt32(advTreeVideoSupplier.SelectedNode.Cells[0].Text));
         advTreeVideoSupplier.DataSource = m_viewModel.VideoSupplierList;
         if (advTreeVideoSupplier.SelectedNode != null)
         {
             uint videoSupplierId = Convert.ToUInt32(advTreeVideoSupplier.SelectedNode.Cells[0].Text);
             advTreeCamera.DataSource = m_viewModel.GetCameraListByVideoSupplierID(videoSupplierId);
         }
     }
 }