public static void Main()
    {
        TotalAsset total = new TotalAsset(new BuildingAsset(new HistoricalBuildingAsset()));

        // Prints "TotalAsset.BuildingAsset.HistoricalBuildingAsset"
        Console.WriteLine(total.FullPath);
    }
        private void BindGridViewSummary()
        {
            try
            {
                LogManager.WriteLog("Inside BindGridViewSummary", LogManager.enumLogLevel.Info);

                TotalAsset      = summaryResultSet.Count();
                TotalBuyIn      = summaryResultSet.Sum(x => x.Total_BuyIn);
                TotalWinLoss    = summaryResultSet.Sum(x => x.Win_Loss);
                TotalTimePlayed = summaryResultSet.Sum(x => x.Time_Played);
                int TotTimePlayed = summaryResultSet.Sum(x => x.Time_Played);

                summaryResultSet.Insert(0, new SessionGamePlayDetails()
                {
                    Position          = FindResource("CGridView_xaml_lblTotal") as string,
                    Asset_No          = TotalAsset.ToString(),
                    IsTotalRow        = true,
                    Total_BuyIn       = TotalBuyIn.Value,
                    Win_Loss          = TotalWinLoss.Value,
                    Time_Played       = TotTimePlayed,
                    Total_BuyIn_Color = "#D7E9EA",
                    Win_Loss_Color    = "#D7E9EA",
                    Time_Played_Color = "#D7E9EA"
                });
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }
        }
    public static void Main()
    {
        TotalAsset total = new TotalAsset(new BuildingAsset(new HistoricalBuildingAsset()));

        // Prints "TotalAsset.BuildingAsset.HistoricalBuildingAsset"
        Console.WriteLine(total.FullPath);

        total.SetByPath("BuildingAsset.HistoricalBuildingAsset.Age", 300);

        // Prints "300" as expected!
        Console.WriteLine(total.GetByPath <int>("BuildingAsset.HistoricalBuildingAsset.Age"));
    }
Пример #4
0
        public BankTradingInfo GetBankTradingInfo(int bankId)
        {
            TotalAsset           totalAssetsQuery = _totalAssetRepo.GetTotalAssetsInfo(bankId);
            DailyCalculatedLimit ratingQuery      = _dailyCalculatedLimitRepo.GetCalculatedLimit(bankId);
            BankName             bankInfo         = _bankNameRepo.GetBank(bankId);

            BankTradingInfo info = new BankTradingInfo()
            {
                BankName        = totalAssetsQuery.BankName,
                Rating          = totalAssetsQuery.Rating,
                TotalAssets     = totalAssetsQuery.Assets,
                DateApplied     = totalAssetsQuery.DateApplied,
                CalculatedLimit = null,
                Approved        = bankInfo.Approved
            };

            info.CalculatedLimit = CalculateLimit(info.Rating, info.TotalAssets);

            return(info);
        }
Пример #5
0
 public void Delete(TotalAsset item)
 {
     throw new NotImplementedException();
 }
Пример #6
0
 public TotalAsset Update(TotalAsset item)
 {
     throw new NotImplementedException();
 }