Exemple #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            //get list from database
            WebService.WebService ws = new WebService.WebService();
            DateTime today           = DateTime.Now;

            transactions = ws.getSummary(today, today);
            ComputeSummary cs = new ComputeSummary();

            cs.getSummary(transactions, TodayTextView);
        }
Exemple #2
0
        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);
        }
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     try
     {
         DateTime              dt           = DateTime.Today.AddDays(-1);
         List <Transaction>    transactions = new List <Transaction>();
         WebService.WebService ws           = new WebService.WebService();
         transactions = ws.getSummary(dt, dt);
         ComputeSummary cs = new ComputeSummary();
         cs.getSummary(transactions, yesterdaySummaryTextView);
     }
     catch (Exception e)
     {
         Console.Out.WriteLine(e);
     }
 }