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