Exemple #1
0
        private void btnVIP_Click(object sender, EventArgs e)
        {
            InvokerCommand       invokeCmd = new InvokerCommand(1);
            BusinessCheckCommand bcc       = new BusinessCheckCommand();

            IdentityChecksCommand identityChecks = new IdentityChecksCommand(bcc);

            invokeCmd.setCommand(0, identityChecks);

            invokeCmd.runCommand(0);;
        }
Exemple #2
0
        private void btnNormal_Click(object sender, EventArgs e)
        {
            InvokerCommand       invokeCmd = new InvokerCommand(2);
            BusinessCheckCommand bcc       = new BusinessCheckCommand();

            IdentityChecksCommand identityChecks = new IdentityChecksCommand(bcc);
            DoCheckCommand        doCheck        = new DoCheckCommand(bcc);

            invokeCmd.setCommand(0, identityChecks);
            invokeCmd.setCommand(1, doCheck);

            invokeCmd.runAllCommands();
        }