コード例 #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            FrmRolesXX f = new FrmRolesXX();

            f.Prepare(EnumNED.NEW, bds, dSjckja1, trolesTableAdapter1, dgv);
            f.ShowDialog();
        }
コード例 #2
0
        private void btnDetail_Click(object sender, EventArgs e)
        {
            //数据表为空时不执行本操作
            if (bds.Current == null)
            {
                return;
            }
            FrmRolesXX f = new FrmRolesXX();

            f.Prepare(EnumNED.DETALL, bds, dSjckja1, trolesTableAdapter1, dgv);
            f.ShowDialog();
        }