private void ReleaseOpenCloseHoursControl() { if (_opencloseList != null) { _opencloseList.Hide(); _opencloseList.Dispose(); _opencloseList = null; } }
private void ViewOpenCloseHoursControl() { if (_opencloseList == null) { ReleaseStoreList(); ReleaseStoreStructure(); ReleaseGetValueWorkingTime(); _opencloseList = new UCOpenCloseHoursList(); _opencloseList.Dock = DockStyle.Fill; _opencloseList.Parent = pcClient; _opencloseList.Show(); _opencloseList.SetStoreContext(Context);; //_opencloseList.LoadControlData (); } }