Ejemplo n.º 1
0
        public String[] CaptureDataToArray()
        {
            String year = "";

            if (FinYear360.GetAttribute("checked") == "true")
            {
                year = "360";
            }
            if (FinYear365.GetAttribute("checked") == "true")
            {
                year = "365";
            }

            return(new string[] { AmountValue, $"{RateValue}%", TermValue, year, StartDate.ToString(SettingsPage.DefaultDateFormat, CultureInfo.InvariantCulture), EndDate, InterestStr, IncomeStr });
        }
Ejemplo n.º 2
0
        public Dictionary <String, String> CaptureData()
        {
            String year = FinYear360.GetAttribute("checked") == "true" ? "360" : "365";

            return(new Dictionary <string, string>()
            {
                ["amount"] = AmountValue,
                ["interest"] = InterestStr,
                ["term"] = TermValue,
                ["year"] = year,
                ["date_from"] = StartDate.ToString(SettingsPage.DefaultDateFormat, CultureInfo.InvariantCulture),
                ["date_to"] = EndDate,
                ["rate"] = $"{RateValue}%",
                ["income"] = IncomeStr
            });
        }