private void btnBangGiaGiay_Click(object sender, EventArgs e) { BangGiaGiayForm frm = new BangGiaGiayForm(FormStateS.View); frm.MaximizeBox = false; frm.MinimizeBox = false; frm.Text = "Bảng giá giấy theo hạng KH "; frm.ShowDialog(); }
private void btnLayGiayOffset_Click(object sender, EventArgs e) { BangGiaGiayForm frm = new BangGiaGiayForm(FormStateS.Get, 0, this.TenGiayDigi); frm.MaximizeBox = false; frm.MinimizeBox = false; frm.Text = "Bảng giá giấy theo hạng KH "; frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { //Cập nhật IdGiay trước if (frm.GiayChon != null) { this.IdGiayOffsetChon = frm.GiayChon.ID; giaInPres.CapNhatChiTietGiayOffset(); } //Cập nhật tiếp các chi tiết } }