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");
            }
        }
Пример #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");
        }
        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);
        }