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 }); }
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}"); } }