Ejemplo n.º 1
0
        public MasterDetailContainerPageDetailViewModel()
        {
            var result = BillingCycleData.Summary();

            SumCredits        = result.Item1.Value;
            SumDebits         = result.Item2.Value;
            ValueConsolidated = result.Item3;
        }
Ejemplo n.º 2
0
        public MainPage()
        {
            InitializeComponent();
            this.BindingContext = new ViewModel.MainPageViewModel();


            BillingCycleData.InitializeData();
        }
Ejemplo n.º 3
0
        public List <BillingCycle> GetBillingCycles()
        {
            var currentMonth = DateTime.Now.ToString("MMMM");
            var currentYear  = DateTime.Now.Year;
            var data         = new BillingCycleData().GetBillingCycles();

            var currentBillingCycle = data.Where(w => w.BillingMonth == currentMonth && w.BillingYear == currentYear).FirstOrDefault();

            return(data.Where(w => w.Id < currentBillingCycle.Id + 2).ToList());
        }