private void timerStatus_Tick(object sender, EventArgs e) { ImportToolLibrary.ImportStatus status = IT.getStatus(); progressBar1.Value = (int)status.PercentDone; // Console.WriteLine(status.PercentDone + " or in int = " + (int)status.PercentDone); labelStatus.Text = "Importing record " + status.Imported + " out of " + status.Total; if (status.PercentDone == 100) { labelStatus.Text = "Import Complete."; importDataButton.Enabled = true; importToolButton.Enabled = true; searchPatientButton.Enabled = true; addPatientButton.Enabled = true; logOutButton.Enabled = true; autoLogout.Enabled = true; } }
public ImportTool() { conn = DBConnectionObject.getInstance(); status = new ImportStatus(); }