コード例 #1
0
        public static void Fire(TransItems items)
        {
            var theList = _whenCommitingSubs;
            if (theList == null)
                return;

            var fields = items.GetFields();
            theList.Select(cs => (Action)(() => cs.Act(fields))).SafeRun();
        }
コード例 #2
0
        public static void Fire(TransItems items)
        {
            var theList = _whenCommitingSubs;
            if (theList == null)
                return;

            var fields = items.Enlisted
                .GroupBy(i => i.Owner)
                .Select(grp => new TransactionField(grp.Key, grp.Any(i => i.HasChanges)))
                .ToArray();
            for (int i = 0; i < theList.Length; i++)
                theList[i].Act(fields);
        }
コード例 #3
0
ファイル: Accounts.cs プロジェクト: abuabakr4rana/FinApp
        public TransItems Transacts(int accountId)
        {
            TransItems i = new TransItems(accountId, 0);

            return(i);
        }