private void CloseLoading() { if (ObjLoading.InvokeRequired) { dCloseLoading d = new dCloseLoading(CloseLoading); this.Invoke(d, null); } else { ObjLoading.Close(); } }
/// <summary> /// Close the Image Loading window /// </summary> public void CloseImageLoadingDialog() { try { if (ObjImageLoading.InvokeRequired) { dCloseLoading d = new dCloseLoading(CloseImageLoadingDialog); ObjImageLoading.Invoke(d, null); } else { ObjImageLoading.Close(); thrImageLoading.Abort(); } } catch (Exception ex) { clsCommon.ShowError(ex, "CloseImageLoadingDialog()"); } }