private void OnCloseDialog() { try { if (_loading != null) { _loading.Invoke((Action)(() => { _loading.Close(); _loading = null; })); } } catch (Exception ex) { MessageBox.Show(ex.Message); Log2File.LogExceptionToFile(ex); } }
private void KillLoading() { try { if (_loading != null) { _loading.Invoke((Action)(() => { _loading.Close(); _loading = null; Close(); })); } } catch (Exception ex) { Log2File.LogExceptionToFile(ex); } }