Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmQuotationKD frm = new frmQuotationKD();

            frm.LoadDataChange += main_LoadDataChange;
            frm.Show();
        }
Ejemplo n.º 2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colID));

            if (id == 0)
            {
                return;
            }
            C_Quotation_KDModel model = (C_Quotation_KDModel)C_Quotation_KDBO.Instance.FindByPK(id);

            _rownIndex = grvData.FocusedRowHandle;

            frmQuotationKD frm = new frmQuotationKD();

            frm.CurrentQuotation = model;
            frm.LoadDataChange  += main_LoadDataChange;
            frm.Show();
        }