示例#1
0
        private void cmuThemGiay_Click(object sender, EventArgs e)
        {
            GiayForm frm = new GiayForm((int)FormStateS.New, this.NhaCungCapChon,
                                        this.IdDanhMucGiayChon);

            frm.Text          = "Giấy [Thêm mới]";
            frm.MaximizeBox   = false;
            frm.MinimizeBox   = false;
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this.LoadGiayTheoDanhMuc();
            }
        }
示例#2
0
        private void SuaGiay()
        {
            if (this.IdGiayChon <= 0)
            {
                return;
            }

            GiayForm frm = new GiayForm((int)FormStateS.Edit, this.NhaCungCapChon,
                                        this.IdDanhMucGiayChon, this.IdGiayChon);

            frm.Text          = string.Format("Giấy [Sửa: {0}]", this.IdGiayChon);
            frm.MaximizeBox   = false;
            frm.MinimizeBox   = false;
            frm.StartPosition = FormStartPosition.CenterParent;
            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                this.LoadGiayTheoDanhMuc();
            }
        }