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); } }
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); } }