示例#1
0
 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();
 }
示例#2
0
        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!");
            



        }