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

            frm.GroupID = TextUtils.ToInt(cboGroup.EditValue);
            frm.StepID  = TextUtils.ToInt(grvData.GetFocusedRowCellValue(colStepID));
            if (frm.ShowDialog() == DialogResult.OK)
            {
                loadWorking();
            }
        }
Exemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     try
     {
         int id = TextUtils.ToInt(grvDetail.GetFocusedRowCellValue(colWorkingID));
         if (id == 0)
         {
             return;
         }
         WorkingModel     model = (WorkingModel)WorkingBO.Instance.GetObjectByID(id);
         frmWorkingDetail frm   = new frmWorkingDetail();
         frm.WorkingModel = model;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             loadWorking();
         }
     }
     catch (Exception)
     {
     }
 }