Esempio n. 1
0
        void OnPickerChanged(object sender, EventArgs e)
        {
            var x             = (Picker)sender;
            var selectedHours = x.Items[x.SelectedIndex];

            NoticeText.Text = "Εμφάνιση στατιστικών για τις κληρώσεις μεταξύ των ωρών " + selectedHours;
            StatisticsList.Clear();
            var index = Hours.FirstOrDefault(z => z.Value == x.Items[x.SelectedIndex]).Key;

            StatisticsList            = AnalyzeEngine.AnalyzeNumbersbyhour(index);
            HoursDrawList.ItemsSource = StatisticsList;
        }
Esempio n. 2
0
        public HourDraws()
        {
            InitializeComponent();
            NavigationPage.SetHasNavigationBar(this, false);
            var myBanner = new MyBanner();

            AdBanner.Children.Add(myBanner);
            ResetHoursList();
            CreateUiPicker();

            if (AnalyzeEngine.DrawsPerHour == null || AnalyzeEngine.DrawsPerHour.Count() <= 0)
            {
                AnalyzeEngine.GetDrawsByHour();
            }
            if (StatisticsList.Count == 0)
            {
                StatisticsList            = AnalyzeEngine.AnalyzeNumbersbyhour(9);
                HoursDrawList.ItemsSource = StatisticsList;
                ResetHoursList();
            }
        }