Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();



        }