public medicine loadMed(string idVisit) { medicine med = new medicine(); try { command.CommandText = "select [medicament],[medicamentUsing] from [visit] where [Код] = " + idVisit; using (OleDbDataReader reader = command.ExecuteReader()) { reader.Read(); med.Title = reader.GetValue(0).ToString().Trim(); med.Way_to_use = reader.GetValue(1).ToString().Trim(); } } catch { } return(med); }
public recommendation() { meds = new medicine(); }