Exemplo n.º 1
0
 /// <summary>
 /// 文档选择
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnDocSelect_Click(object sender, EventArgs e)
 {
     QueryDoc queryDoc = new QueryDoc();
     if (queryDoc.ShowDialog() == DialogResult.OK)
     {
         grantDocList = queryDoc.grantDocList;
         this.dgcDocument.DataSource = grantDocList;
         this.dgcDocument.RefreshDataSource();
         // 设置成功!
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// 文档选择
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDocSelect_Click(object sender, EventArgs e)
        {
            QueryDoc queryDoc = new QueryDoc();

            if (queryDoc.ShowDialog() == DialogResult.OK)
            {
                grantDocList = queryDoc.grantDocList;
                this.dgcDocument.DataSource = grantDocList;
                this.dgcDocument.RefreshDataSource();
                // 设置成功!
            }
        }