Exemple #1
0
        private void NewCountry()
        {
            Domain.Country entity      = ClientEnvironment.CountryService.CreateEntity();
            FormCountry2   countryform = new FormCountry2();

            countryform.Country = entity;
            if (countryform.ShowDialog() == DialogResult.OK)
            {
                List <Domain.Country> l = new List <Baumax.Domain.Country>();
                l.Add(countryform.Country);

                _nodesList.AddCountries(l);
            }
        }
Exemple #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (ClientEnvironment.IsRuntimeMode)
            {
                _nodesList = new BaumaxTreeNodeList();
                List<Domain.Country> lst = ClientEnvironment.CountryService.FindAll();
                _nodesList.AddCountries(lst);
                List<Domain.Region> lstRegion = ClientEnvironment.RegionService.FindAll();
                _nodesList.AddRegions(lstRegion);

                List<Domain.Store> lstStore = ClientEnvironment.StoreService.FindAll();
                _nodesList.AddStores(lstStore);

                treeList1.DataSource = _nodesList;

            }
        }
Exemple #3
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            if (ClientEnvironment.IsRuntimeMode)
            {
                _nodesList = new BaumaxTreeNodeList();
                List <Domain.Country> lst = ClientEnvironment.CountryService.FindAll();
                _nodesList.AddCountries(lst);
                List <Domain.Region> lstRegion = ClientEnvironment.RegionService.FindAll();
                _nodesList.AddRegions(lstRegion);

                List <Domain.Store> lstStore = ClientEnvironment.StoreService.FindAll();
                _nodesList.AddStores(lstStore);


                treeList1.DataSource = _nodesList;
            }
        }