Exemplo n.º 1
0
        private void btnAddStep_Click(object sender, EventArgs e)
        {
            frmProductStepDetail frm = new frmProductStepDetail();

            frm.ProductID = ProductID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadStep();
            }
        }
Exemplo n.º 2
0
 private void btnEditStep_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colStepID));
         if (id == 0)
         {
             return;
         }
         ProductStepModel     model = (ProductStepModel)ProductStepBO.Instance.FindByPK(id);
         frmProductStepDetail frm   = new frmProductStepDetail();
         frm.ProductStep = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadStep();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }