Exemple #1
0
 public MainForm()
 {
     InitializeComponent();
     _pattern = new PattertInfo();
     //_columns = new List<ColumnInfo>();
     FillColumns();
     _allOffers       = new AllOffers();
     _offerCategories = new OfferCategories();
 }
Exemple #2
0
 private void BuildCategoriesTree(OfferCategories katalog)
 {
     try
     {
         lvOffers.Items.Clear();
         lvProperties.Items.Clear();
         tvCategories.BeginUpdate();
         tvCategories.Nodes.Clear();
         foreach (var category in katalog.Categories)
         {
             var node = new TreeNode(category.Name)
             {
                 Tag = category
             };
             tvCategories.Nodes.Add(node);
             AddChilds(category, node);
         }
     }
     finally
     {
         tvCategories.EndUpdate();
     }
 }