private void BgwSubmit_DoWork(object sender, DoWorkEventArgs e)
 {
     while (retry)
     {
         try
         {
             if (PublicProperties.DatabaseStatus)
             {
                 DB_SFDB.DailyLoadingStationReady();
                 retry = false;
                 panelNotification.Visible = false;
             }
         }
         catch { }
         Thread.Sleep(100);
     }
 }
예제 #2
0
 private void BgwSubmit_DoWork(object sender, DoWorkEventArgs e)
 {
     while (retry)
     {
         try
         {
             if (GlobalProperties.DatabaseStatus)
             {
                 DB_SFDB.DailyLoadingStationReady();
                 retry = false;
             }
         }
         catch (Exception x)
         {
             Base.Log.Error.Collect(x.StackTrace.ToString());
         }
         Thread.Sleep(100);
     }
 }