private void PatientProfilePreSelection_Load(object sender, EventArgs e) { GlobalFormManager.FormOpen(); cboProperty.SelectedIndex = 0; cboCriteria.SelectedIndex = 0; lblNumberOfRecords.Text = "* Total Number of Patient Records: " + database.getTableRecordCount("Patient").ToString(); }
private decimal getPercentage(int count) { int total = database.getTableRecordCount("Patient"); return(Math.Round(((decimal)count / (decimal)total) * 100, 2)); }