public ProductView() { InitializeComponent(); productsManager = new ProductsManager(); impProductDetail = new ImpProductDetail(); this.webBrowser1.ObjectForScripting = this; this.staticImage.Image = ImageUtils.ResizeImage(global::AliHelper.Properties.Resources.no_image, 150, 150); this.webBrowser1.Navigate(Application.StartupPath + "\\KindEditor\\Editor.htm"); }
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(); }
private void MainForm_FormClosed(object sender, FormClosedEventArgs e) { productsManager = null; impProductDetail = null; }