Пример #1
0
        private void HomePageEvent_event1(object sender, HomePageEvent e)
        {
            list = e.list;
            Dispatcher.Invoke(() =>
            {
                try
                {
                    gActualBaskiAdet.Text = String.Format("{0:0.0}", Convert.ToDouble(list[0]));
                    gAdetSet.Text         = String.Format("{0:0.0}", Convert.ToDouble(list[1]));
                    gActualMetraj.Text    = String.Format("{0:0.0}", Convert.ToDouble(list[2]));
                    gMetrajSet.Text       = String.Format("{0:0.0}", Convert.ToDouble(list[3]));
                    gTunelIsiSet.Text     = String.Format("{0:0.0}", Convert.ToDouble(list[4]));
                    gTunelIsiActual.Text  = String.Format("{0:0.0}", Convert.ToDouble(list[5]));
                    gRenkIsiSet.Text      = String.Format("{0:0.0}", Convert.ToDouble(list[6]));
                    gRenkIsiActual.Text   = String.Format("{0:0.0}", Convert.ToDouble(list[7]));

                    gSarici1SetKg.Text = String.Format("{0:0.0}", Convert.ToDouble(list[8]));
                    gSarici1ActKg.Text = String.Format("{0:0.0}", Convert.ToDouble(list[9]));
                    gSarici2SetKg.Text = String.Format("{0:0.0}", Convert.ToDouble(list[10]));
                    gSarici2ActKg.Text = String.Format("{0:0.0}", Convert.ToDouble(list[11]));
                    gCozguSetKg.Text   = String.Format("{0:0.0}", Convert.ToDouble(list[12]));
                    gCozguActKg.Text   = String.Format("{0:0.0}", Convert.ToDouble(list[13]));
                    gCapSet.Text       = String.Format("{0:0.0}", Convert.ToDouble(list[14]));
                    gCozguActCap.Text  = String.Format("{0:0.0}", Convert.ToDouble(list[15]));

                    SAxis1.Text = String.Format("{0:0.0}", Convert.ToDouble(list[16]));
                    SAxis2.Text = String.Format("{0:0.0}", Convert.ToDouble(list[17]));
                    SAxis3.Text = String.Format("{0:0.0}", Convert.ToDouble(list[18]));
                    SAxis4.Text = String.Format("{0:0.0}", Convert.ToDouble(list[19]));
                }
                catch { }
            });
        }
 public InMemoryHomePageEvent()
 {
     _homePageEvent = new HomePageEvent
     {
         Title       = "Member Meeting",
         Date        = "February 18, 2018 at 2 PM",
         Description =
             "Our upcoming meeting will be held on Sunday afternoon, February 18, 2018, beginning at 2 PM." +
             " I encourage all of you to join in the fun by participating in the chili cook-off and/or the cookie contest." +
             " It is brought to you by District 5 Sports and Recreation Director, Michaela Decker." +
             " Her lodge has participated in this fun activity for many years." +
             " Little ones can help with preparing the hamburger or other stew meat, grating cheese, or by cutting vegetables (with supervision, of course)." +
             " Adding garnishes is an easy thing for them to do. A taste taster will sample the entries and a “winner” will walk home with our traveling trophy." +
             " Baking cookies with youngsters is a lot of fun, too, and many children enjoy the decorating process!" +
             " Pamela Barnes will judge the cookie entries, determining who will walk home with the “tastiest cookie honor”." +
             " There are no separate categories for the cookies, simply choose your favorite and bring it in to the meeting." +
             " Some cookies will be saved for our luncheon that day, and extra cookies will be sent on to the American Birkebeiner in Hayward, WI, where they will be enjoyed by young and old alike." +
             " Due to a concern over allergies, I ask that the cookies be free of nutmeats." +
             " Pictures will be taken of both contest winners, and they will be submitted to the District 5 webmaster for posting. Lykke til!" +
             " Please bring the recipes for the chili and the cookies written on recipe cards." +
             " The winning recipes will be published in an upcoming edition of the Vennelag News." +
             " While the judging is taking place, Cultural Director Tiffany Schwoerer and Social Director Allen Watrud have prepared the Viking Olympics for all to enjoy." +
             " These activities will provide quality time for our members to interact with one another and to build strong lodge relationships." +
             " Youngsters are encouraged to attend this meeting." +
             " Usually, they can teach us a thing or two! I look forward to seeing your family on February 18th."
     };
 }
Пример #3
0
        public WebViewPage(HomePageEvent webEvent)
        {
            InitializeComponent();

            if (webEvent != null)
            {
                Title = webEvent.EventTitle;

                switch (webEvent.EventType)
                {
                case EventType.Notification:
                    if (!string.IsNullOrEmpty(webEvent.Url))
                    {
                        var url = webEvent.Url.StartsWith("https") ? webEvent.Url : $"https://{webEvent.Url}";

                        webView.Source = new UrlWebViewSource()
                        {
                            Url = url
                        };
                    }
                    break;

                case EventType.Tournament:
                    break;

                default:
                    break;
                }
            }
        }
Пример #4
0
        private async void ContentPage_Appearing(object sender, EventArgs e)
        {
            HomePageEvents = new HomePageData();

            List <Tournament> Tournaments = (await DataStoreTournament.GetItemsAsync()).ToList();

            Tournaments = Tournaments.Where(d => d.Datum >= DateTime.Today).OrderBy(x => x.Datum).ToList();

            foreach (Tournament t in Tournaments)
            {
                HomePageEvent hpe = new HomePageEvent();

                Event ev = await DataStoreEvent.GetItemAsync(t.EventId);

                Golfclub gc = await DataStoreGolfclub.GetItemAsync(ev.GolfclubId);

                if (gc != null)
                {
                    hpe.EventClub = gc.Name;
                }
                else
                {
                    hpe.EventClub = "";
                }

                hpe.EventDate       = t.Datum.ToString("dd.MM.yyy hh:mm");
                hpe.EventName       = ev.Name;
                hpe.TournamentName  = t.Name;
                hpe.EventTournament = t;
                hpe.BackColor       = "#90EE90";

                //check if already tournament results
                hpe.ButtonText = "Runde starten";

                List <Result> Results  = (await DataStoreResults.GetItemsAsync()).ToList();
                List <Result> tResults = Results.Where(x => x.TournamentId == t.Id).ToList();
                if (tResults.Count > 0)
                {
                    hpe.ButtonText = "Runde fortsetzen";
                }

                if (ev.EventType == EventTypeEnum.Event)
                {
                    hpe.BackColor = "#FF9966";
                }
                if (t.Id >= 1000000)
                {
                    hpe.BackColor = "#91C7E9";
                }

                HomePageEvents.Events.Add(hpe);
            }
            BindingContext = HomePageEvents;
        }
Пример #5
0
        private async void Web_Tapped(object sender, EventArgs e)
        {
            Label lbl = sender as Label;

            var homepageEvent = new HomePageEvent()
            {
                Url        = "https://www.golfclub-sittensen.de/startseite.html",
                EventTitle = "Hompage GCKS",
                EventType  = EventType.Notification
            };

            if (!string.IsNullOrEmpty(homepageEvent.Url))
            {
                await Navigation.PushAsync(new WebViewPage(homepageEvent));
            }
        }
        public HomePageEvent Update(HomePageEvent homePageEvent)
        {
            _homePageEvent = homePageEvent;

            return(_homePageEvent);
        }