예제 #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 });
        }
예제 #2
0
        public void SelectFinYear(int year)
        {
            switch (year)
            {
            case 360:
                FinYear360.Click();
                break;

            case 365:
                FinYear365.Click();
                break;

            default:
                throw new Exception($"Not valid financial year value: {year}");
            }
        }