Esempio n. 1
0
        private void btnCreateStage_Click(object sender, EventArgs e)
        {
            frmAddEditStageHyp frm = new frmAddEditStageHyp(cGlobalVariables.Add);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadStage();
                LoadMachine();
            }
        }
Esempio n. 2
0
        private void btnEditStage_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(gvStage.GetFocusedRowCellValue(colIDStage));

            if (id == 0)
            {
                return;
            }
            prevRow = gvStage.GetSelectedRows()[0];
            StageModel model = (StageModel)StageBO.Instance.FindByPK(id);

            frmAddEditStageHyp frm = new frmAddEditStageHyp(cGlobalVariables.Edit);

            frm.stageModel = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadStage();
                LoadMachine();
                gvStage.FocusedRowHandle = prevRow;
            }
        }