private void ViewStoreListControl() { if (_storeList == null) { ReleaseGetValueWorkingTime(); ReleaseOpenCloseHoursControl(); ReleaseStoreStructure(); _storeList = new UCStoreList(); _storeList.Dock = DockStyle.Fill; _storeList.Parent = pcClient; _storeList.Show(); _storeList.SetStoreContext(Context); _storeList.OnNotifyChangeCountry += new UCStoreList.NotifyEntityChanged(_storeList_OnNotifyChangeCountry); //+= new UCStoreList.NotifyEntityChanged(_storeList.OnNotifyChangeCountry); } }
private void ReleaseStoreList() { if (_storeList != null) { _storeList.Hide(); _storeList.Dispose(); _storeList = null; } }