Esempio n. 1
0
        private void btnAddStep_Click(object sender, EventArgs e)
        {
            frmProductStepDetailH frm = new frmProductStepDetailH();

            frm.ProductID = ProductID;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadStep();
            }
        }
Esempio 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);
         frmProductStepDetailH frm   = new frmProductStepDetailH();
         frm.ProductStep = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadStep();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, TextUtils.Caption, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }