コード例 #1
0
ファイル: 列表.cs プロジェクト: cheng521yun/FTMZ
        void Modify( int nRow, int nCol )
        {
            if ( nRow < 0 || nRow >= _lst.Count )
                return;

            DB.Stru.老龄办.敬老优待证 struSel = fl.grd.Rows[ nRow ].DataBoundItem as DB.Stru.老龄办.敬老优待证;
            if ( struSel == null )
                return;

            FEdit fm = new FEdit();
            fm.stru = struSel;
            if ( fm.ShowDialog() != DialogResult.OK )
                return;

            if ( fm.stru.ID == "" )   //delete
                _lst.RemoveAt( nRow );
            else    //modify
                _lst[ nRow ] = fm.stru;

            //Refreah
            //Fill();
            Find();
        }
コード例 #2
0
 private void 发放老龄优待证()
 {
     FEdit fm = new FEdit();
     if (fm.ShowDialog() != DialogResult.OK)
         return;
 }