コード例 #1
0
        public void Generate(GeneratorContext ctx)
        {
            VetaD?.Generate(ctx);

            VetaA1 = null;
            VetaA2 = PisemnostDPHKH1VetaA2.CreateVetaA2Array(ctx);
            VetaA3 = null;
            VetaA4 = PisemnostDPHKH1VetaA4.CreateVetaA4Array(ctx);
            VetaA5 = PisemnostDPHKH1VetaA5.CreateIfNeeded(ctx);

            VetaB1 = null;
            VetaB2 = PisemnostDPHKH1VetaB2.CreateVetaB2Array(ctx);
            VetaB3 = PisemnostDPHKH1VetaB3.CreateIfNeeded(ctx);

            VetaC = new PisemnostDPHKH1VetaC();
            VetaC.Generate(ctx);
        }
コード例 #2
0
        public static PisemnostDPHKH1VetaB2[] CreateVetaB2Array(GeneratorContext ctx)
        {
            var outNotAnnonTrans =
                from t in ctx.Transactions
                where t.Direction == Transaction.EDirection.Outgoing && t.IsAnnonymousInKH == false
                select t;

            var outNotAnnonTransList = outNotAnnonTrans.ToList();

            var ret = new PisemnostDPHKH1VetaB2[outNotAnnonTransList.Count];

            for (var i = 0; i < outNotAnnonTransList.Count; ++i)
            {
                ret[i] = new PisemnostDPHKH1VetaB2();
                ret[i].Generate(ctx, outNotAnnonTransList[i], i + 1);
            }
            return(ret);
        }