private void btnGetProdTemplate_Click(object sender, EventArgs e)
        {
            KhoSanPhamSForm frm = new KhoSanPhamSForm((int)Enumss.FormState.Get);

            frm.MaximizeBox   = false;
            frm.MinimizeBox   = false;
            frm.Text          = "Lấy khổ SP";
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this.KhoCatRong = frm.ChieuRong;
                this.KhoCatCao  = frm.ChieuCao;
            }
        }
Beispiel #2
0
        private void btnGetProdTemplate_Click(object sender, EventArgs e)
        {
            KhoSanPhamSForm frm = new KhoSanPhamSForm(FormStateS.Get);

            frm.MaximizeBox   = false;
            frm.MinimizeBox   = false;
            frm.Text          = "Lấy khổ SP";
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this.KhoCatRong  = frm.Rong;
                this.KhoCatCao   = frm.Cao;
                this.TranLeTren  = frm.TranLeTren;
                this.TranLeDuoi  = frm.TranLeDuoi;
                this.TranLeTrong = frm.TranLeTrong;
                this.TranLeNgoai = frm.TranLeNgoai;
            }
        }