public void GeneratePrevEnds(List <Data.End> prevEnd)
        {
            int i = 1; //for end numbers in display

            foreach (Data.End pEnd in prevEnd)
            {
                int           runningTotal = 0;
                PracticeModel ed           = new PracticeModel("End: " + i, pEnd.Score1, pEnd.Score2, pEnd.Score3, pEnd.Score4, pEnd.Score5, pEnd.Score6, pEnd.EndTotal, runningTotal);
                string        endRef       = pEnd.EndNum;//gets the endRef for database call
                ed.PrevWeather(endRef);
                ed.PrevNotes(endRef);
                //OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, ed));
                end.Add(ed);

                i = i + 1; //increase end by 1
                var a = end;
            }
        }
Exemple #2
0
        private async void NotesAndWeatherClicked(object sender, EventArgs e)
        {
            string endRef = null;

            Model.PracticeModel curEnd = (Model.PracticeModel)dataGrid.SelectedItem;
            if (curEnd != null)
            {
                endRef = curEnd.ER;
            }

            if (endRef != null)
            {
                await Navigation.PushAsync(new UINotesAndWeather(endRef) { Title = "Notes and Weather" });
            }
            else
            {
                SelectEndRow();
            }
        }