partial void SearchButton_TouchUpInside(UIButton sender) { DateTime startDate = DateTime.ParseExact(StartDateTextField.Text, "MM/dd/yyyy", null); DateTime endDate = DateTime.ParseExact(EndDateTextField.Text, "MM/dd/yyyy", null); SelectedDateSummaryView sv = new SelectedDateSummaryView(); DateHolder dt = new DateHolder(startDate, endDate); viewChanger = new ViewChanger(this, "SelectedDateSummaryView"); }
public override void ViewDidLoad() { base.ViewDidLoad(); //get transanctions from the database WebService.WebService ws = new WebService.WebService(); DateHolder ds = new DateHolder(); DateTime startDate = ds.GetStartDate(); DateTime endDate = ds.GetEndDate(); Console.Out.WriteLine("getStartDate = " + startDate); transactions = ws.getSummary(startDate, endDate); ComputeSummary cs = new ComputeSummary(); cs.getSummary(transactions, SelectedDateTextView); }