public bool Update(Medicamento t) { DALMedicamento med = new DALMedicamento(); return med.Update(t); }
public bool Delete(Medicamento t) { DALMedicamento med = new DALMedicamento(); return med.Delete(t); }
public bool Insert(Medicamento t) { DALMedicamento med = new DALMedicamento(); return med.Insert(t); }
private void med_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (((Medicamento)sender).med != null) { medicamento = new DTOReceituario.Medicamento(); medicamento = ((Medicamento)sender).med; this.txtboxMedicamento.Text = medicamento.Nome == null ? "" : medicamento.Nome; this.txtboxApresentacao.Text = medicamento.Desc == null ? "" : medicamento.Desc; } }