Esempio n. 1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gridViewScoreType.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow foucesRow = gridViewScoreType.GetDataRow(gridViewScoreType.FocusedRowHandle);

            if (foucesRow == null)
            {
                return;
            }

            if (foucesRow.IsNull("TYPECODE"))
            {
                return;
            }

            QCScoreTypeEdit scoretypeedit = new QCScoreTypeEdit(m_app);

            scoretypeedit.m_ScoreType = FillQCTypeValue2Entity(foucesRow);
            scoretypeedit.ShowDialog();
            if (scoretypeedit.ISRefresh)
            {
                BindDataSource();
            }
        }
Esempio n. 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            QCScoreTypeEdit scoretypeedit = new QCScoreTypeEdit(m_app);

            scoretypeedit.m_ScoreType = null;
            scoretypeedit.ShowDialog();
            if (scoretypeedit.ISRefresh)
            {
                BindDataSource();
            }
        }