Exemple #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmYuanGongXX f = new FrmYuanGongXX();

            f.Prepare(EnumNED.NEW, bds, dSjckja1, tygTableAdapter1, dgv);
            f.ShowDialog();
        }
Exemple #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            //数据库为空时不执行本操作
            if (bds.Current == null)
            {
                return;
            }
            FrmYuanGongXX f = new FrmYuanGongXX();

            f.Prepare(EnumNED.EDIT, bds, dSjckja1, tygTableAdapter1, dgv);
            f.ShowDialog();
        }