Example #1
0
        public MainForm()
        {
            configManager = new BaseManager();
            configManager.InitDbConfig();
            InitializeComponent();
            productsManager = new ProductsManager();
            impProductDetail = new ImpProductDetail();
            myItemsManager = new MyItemManager();
            List<AliGroup> groups = productsManager.GetGroupList();
            if (groups.Count == 0)
            {
                groups = HttpClient.GetGroups(-1, 0, DataCache.Instance.CsrfToken);
                productsManager.UpdateGroups(groups);
            }
            impProductDetail.InitDataCacheFormOptions();
            productsManager.InitGroupOptions();

            LoadNavigatorBar();
            UpdateGroupUI(groups);
            LoadProductListView();
        }