Exemplo n.º 1
0
 public void loadData()
 {
     try
     {
         _ucComboBoxCoSo.DataSource = ViTriHienThi.getAllCoSo();
         _ucComboBoxDay.DataSource  = ViTriHienThi.getAllHaveDay();
         listViTriHienThi           = ViTriHienThi.getAll();
         if (listViTriHienThi.Count == 0)
         {
             editGUI("nothing", "");
         }
         treeListViTri.DataSource = listViTriHienThi;
     }
     catch (Exception ex)
     {
         Debug.WriteLine(this.Name + "->loadData:" + ex.Message);
     }
 }
Exemplo n.º 2
0
 public void loadData()
 {
     try
     {
         canAddCoSo = Permission.canAdd <CoSo>();
         canAddDay  = Permission.canAdd <Dayy>();
         canAddTang = Permission.canAdd <Tang>();
         _ucComboBoxViTri.DataSource        = ViTriHienThi.getAllCoSo();
         _ucComboBoxViTriChonDay.DataSource = ViTriHienThi.getAllHaveDay();
         listViTriHienThi = ViTriHienThi.getAll();
         if (listViTriHienThi.Count == 0)
         {
             editGUI("nothing", "");
             editGUI2("nothing", "");
         }
         treeListViTri.DataSource = listViTriHienThi;
     }
     catch (Exception ex)
     {
         Debug.WriteLine(this.Name + "->loadData:" + ex.Message);
     }
 }