Example #1
0
        private void btnSua_Click(object sender, EventArgs e)
        {
            dtoMayTinh MT = new dtoMayTinh(txtMaMay.Text, txtTenMay.Text, txtCauHinh.Text, txtTinhTrang.Text, txtMaPhong.Text);

            try
            {
                busMayTinh bus_mt = new busMayTinh();
                bus_mt.SuaMayTinh(MT);
                LoadData();
                MessageBox.Show("sửa thành công");
            }
            catch
            {
                MessageBox.Show("sửa thành công");
            }
        }
Example #2
0
 public string XoaMayTinh(dtoMayTinh pMAMAY)
 {
     return(maytinh.XoaMayTinh(pMAMAY));
 }
Example #3
0
 public string SuaMayTinh(dtoMayTinh pMAYTINH)
 {
     return(maytinh.SuaMayTinh(pMAYTINH));
 }
Example #4
0
 public string ThemMayTinh(dtoMayTinh pMAYTINH)
 {
     return(maytinh.ThemMayTinh(pMAYTINH));
 }