示例#1
0
        //添加事件按钮

        private void btnAddSJ_Click(object sender, EventArgs e)
        {
            addSJ_Sql AS = new addSJ_Sql();

            AS.showName = deName.Text.Trim();
            AS.showSFZ  = deSFZ.Text.Trim();
            AS.ShowDialog();
            //addSJMethod();
        }
示例#2
0
        //为当前对象添加事件
        private void 添加事件ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string    getName = sqlDataView[0, sqlDataView.CurrentCell.RowIndex].Value.ToString();
            string    getSFZ  = sqlDataView[7, sqlDataView.CurrentCell.RowIndex].Value.ToString();
            addSJ_Sql AS      = new addSJ_Sql();

            AS.showName = getName;
            AS.showSFZ  = getSFZ;
            AS.ShowDialog();
        }