예제 #1
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            if (gridViewScoreItem.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow foucesRow = gridViewScoreItem.GetDataRow(gridViewScoreItem.FocusedRowHandle);

            if (foucesRow == null)
            {
                return;
            }

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

            QCScoreItemEdit scoreitemedit = new QCScoreItemEdit(m_app);

            scoreitemedit.m_scoreitem = FillQCTypeValue2Entity(foucesRow);
            scoreitemedit.ShowDialog();
            if (scoreitemedit.ISRefresh)
            {
                BindDataSource();
            }
        }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            QCScoreItemEdit scoreitemedit = new QCScoreItemEdit(m_app);

            scoreitemedit.m_scoreitem = null;
            scoreitemedit.ShowDialog();

            if (scoreitemedit.ISRefresh)
            {
                BindDataSource();
            }
        }