private void btndelete_Click(object sender, EventArgs e) { obj = new UnitInfo(); obj.UnitID = txtunitid.Text; obj.UnitName = txtunitname.Text; UnitInfoBLL bllObj = new UnitInfoBLL(); bllObj.Delete(obj); MessageBox.Show("Data deleted successfully !"); this.LoadUnit(); }
private void loadTOModel() { obj = new UnitInfo(); obj.UnitID = txtunitid.Text; obj.UnitName = txtunitname.Text; UnitInfoBLL bllObj = new UnitInfoBLL(); bllObj.SaveUnit(obj); MessageBox.Show("Data successfully Saved!"); this.LoadUnit(); }