private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmAddTaiSan frm = new frmAddTaiSan(); frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused); frm.ShowDialog(); }
private void btnThem_r_Click(object sender, EventArgs e) { frmAddTaiSan frm = new frmAddTaiSan(); frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused); frm.ShowDialog(); }
private void btnSua_Click(object sender, EventArgs e) { if (gridViewTaiSan.GetFocusedRow() != null) { frmAddTaiSan frm = new frmAddTaiSan((gridViewTaiSan.GetFocusedRow() as TaiSanHienThi).obj, listTinhTrang, listLoaiTaiSan); frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reload); frm.Text = "Sửa tài sản kèm theo"; frm.ShowDialog(); } }
private void btnSua_r_Click(object sender, EventArgs e) { CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan; if (obj != null) { frmAddTaiSan frm = new frmAddTaiSan(obj); frm.Text = "Sửa tài sản"; frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused); frm.ShowDialog(); } }
private void barBtnSuaTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan; if (obj != null) { frmAddTaiSan frm = new frmAddTaiSan(obj); frm.Text = "Sửa tài sản"; frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused); frm.ShowDialog(); } }
private void btnAddNew_Click(object sender, EventArgs e) { id = lookUpTinhTrang.EditValue; objLoaiTS = ucComboBoxLoaiTS1.LoaiTS; frmAddTaiSan frm = new frmAddTaiSan(listCTTaiSan, listTinhTrang, listLoaiTaiSan); frm.reloadAndFocused = new ReloadAndFocused(reload); frm.reLoadAndSetValueLoaiTS = new ReLoadAndSetValueLoaiTS(reloadLoaiTS); frm.reLoadAndSetValueTinhTrang = new ReLoadAndSetValueTinhTrang(reloadTinhTrang); frm.Text = "Thêm tài sản kèm theo"; frm.ShowDialog(); }
private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { DonVi obj = ucTreeDonVi1.DonVi; //if (obj != null) //{ // frmAddTaiSanExist frm = new frmAddTaiSanExist(obj); // frm.reloadAndFocused = new frmAddTaiSanExist.ReloadAndFocused(reloadAndFocused); // frm.ShowDialog(); //} frmAddTaiSan frm = new frmAddTaiSan(obj); frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused); frm.ShowDialog(); }