private void btndelete_Click(object sender, EventArgs e) { obj = new DosageInfo(); obj.DosageId = txtdosageid.Text; obj.DosageName = txtdosagename.Text; DosageBLL bllObj = new DosageBLL(); bllObj.DeleteDosage(obj); MessageBox.Show("Data Deleted Successfully"); this.LoadDosage(); }
private void loadTOModel() { this.LoadDosage(); obj = new DosageInfo(); obj.DosageId = txtdosageid.Text; obj.DosageName = txtdosagename.Text; DosageBLL bllObj=new DosageBLL(); bllObj.SaveDosage(obj); MessageBox.Show("Data successfully Saved!"); }