void OnPickerChanged(object sender, EventArgs e)
        {
            var x = (Picker)sender;
            var selectednumber = x.Items[x.SelectedIndex];

            var favnumber = AnalyzeEngine.GetSingleNumberStatistics(selectednumber);

            percentagenmbr.Text = "Ποσοστό εμφάνισης " + favnumber.percentageshow.ToString() + " %";
            countnmbr.Text      = "Εμφανίσεις " + favnumber.numbercount.ToString();
            lastdrawdate1.Text  = "Τελευταία εμφάνιση Στις ";
            lastdrawdate2.Text  = favnumber.stringlastdrawshowedTime;
            drawscount.Text     = "Έχει να εμφανιστεί " + favnumber.countfromlastdraw.ToString() + " κληρώσεις";
            posibility.Text     = "Πιθανότητα εμφάνισης " + favnumber.possibilitytoshownext.ToString();


            if (favnumber.possibilitytoshownext == PossibilityToShow.Υψηλή)
            {
                posibility.TextColor = Color.FromHex("#FFFF0000");
            }
            else if (favnumber.possibilitytoshownext == PossibilityToShow.Μέτρια)
            {
                posibility.TextColor = Color.FromHex("#FFF5A079");
            }
            else
            {
                posibility.TextColor = Color.FromHex("#FF1ADA23");
            }
        }
Exemplo n.º 2
0
        void OnGeneratedButtonClicked(object sender, EventArgs e)
        {
            Button button     = (Button)sender;
            var    statistics = AnalyzeEngine.GetSingleNumberStatistics(button.Text.ToString());

            DisplayActionSheet("Αριθμός " + button.Text, "Ok", null, "Σύνολο εμφανίσεων " + statistics.numbercount, "Ποσοστό εμφάνισης " + statistics.percentageshow.ToString() + "%", "Πιθανότητα εμφάνισης " + statistics.possibilitytoshownext.ToString(), "Τελευταία εμφάνιση πριν από " + statistics.countfromlastdraw.ToString() + " Κληρώσεις ", "στις " + statistics.stringlastdrawshowedTime.ToString());
            //DisplayAlert ("Αριθμός "+button.Text, "Σύνολο εμφανίσεων " + statistics.numbercount + " " + "Ποσοστό εμφάνισης " + statistics.percentageshow.ToString() + " % " + "Πιθανότητα εμφάνισης " + statistics.possibilitytoshownext.ToString() + " Τελευταία εμφάνιση πριν από " + statistics.countfromlastdraw.ToString() + " Κληρώσεις στις " + statistics.stringlastdrawshowedTime.ToString(),"OK");
        }
Exemplo n.º 3
0
        void OnPickerChanged(object sender, EventArgs e)
        {
            var x = (Picker)sender;
            var SelectedNumber = x.Items[x.SelectedIndex];

            NoticeText.Text          = "Εμφάνισεις δεκαδικών του λήγοντα αριθμού " + SelectedNumber;
            NoticeText.HeightRequest = 15;
            nums = AnalyzeEngine.GetMultipleNumbers(SelectedNumber, 4).OrderByDescending(a => a.drawTime).ToList();
            VerticalNumbersList.ItemsSource = nums;
        }
Exemplo n.º 4
0
 public static void SaveDraws(string todaysdraws, string yesterdaysdraws)
 {
     if (!String.IsNullOrEmpty(todaysdraws) && (!String.IsNullOrEmpty(yesterdaysdraws)))
     {
         AnalyzeEngine.DrawsList.Clear();
         AnalyzeEngine.NumbersStatisticsList.Clear();
         AnalyzeEngine.getSaveDraws(yesterdaysdraws);
         AnalyzeEngine.getSaveDraws(todaysdraws);
         AnalyzeEngine.getStatistics();
     }
 }
Exemplo n.º 5
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;
        }
        void ListItem_Click(object sender, ItemTappedEventArgs e)
        {
            DeleteButtonArea.Children.Clear();

            var item = e.Item as string;

            itemtoremove = item;
            var favnumber = AnalyzeEngine.GetSingleNumberStatistics(item);

            percentagenmbr.Text = "Ποσοστό εμφάνισης " + favnumber.percentageshow.ToString() + " %";
            countnmbr.Text      = "Εμφανίσεις " + favnumber.numbercount.ToString();
            lastdrawdate1.Text  = "Τελευταία εμφάνιση Στις ";
            lastdrawdate2.Text  = favnumber.stringlastdrawshowedTime;
            drawscount.Text     = "Έχει να εμφανιστεί " + favnumber.countfromlastdraw.ToString() + " κληρώσεις";
            posibility.Text     = "Πιθανότητα εμφάνισης " + favnumber.possibilitytoshownext.ToString();


            if (favnumber.possibilitytoshownext == PossibilityToShow.Υψηλή)
            {
                posibility.TextColor = Color.FromHex("#FFFF0000");
            }
            else if (favnumber.possibilitytoshownext == PossibilityToShow.Μέτρια)
            {
                posibility.TextColor = Color.FromHex("#FFF5A079");
            }
            else
            {
                posibility.TextColor = Color.FromHex("#FF1ADA23");
            }

            Button numberbtn = new Button();

            numberbtn.Text            = "Αφαίρεση αριθμού";
            numberbtn.WidthRequest    = 200;
            numberbtn.HeightRequest   = 68;
            numberbtn.BorderRadius    = 5;
            numberbtn.FontSize        = 14;
            numberbtn.BackgroundColor = Color.FromHex("#255A9C");

            DeleteButtonArea.Children.Add(numberbtn);
        }
Exemplo n.º 7
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();
            }
        }