Пример #1
0
        public MatchReportPage(string number)
        {
            InitializeComponent();
            model          = new ReportViewModel();
            model.teamName = "???";
            int n;

            if (number != null)
            {
                int.TryParse(number, out n);
                model.teamNumber = n;
            }
            else
            {
                model.teamNumber = 0;
            }

            Random rand = new Random();

            model.allianceScore = rand.Next().ToString();
            model.matchNumber   = rand.Next().ToString();
            Rest rest = new Rest();

            rest.createNewReport(model);
        }
Пример #2
0
        void OnDoneClicked(object sender, EventArgs e)
        {
            harvestUIControls();
            Rest rest = new Rest();

            rest.createNewReport(model0);
            if (team2.Text != "####")
            {
                rest.createNewReport(model1);
            }
            if (team3.Text != "####")
            {
                rest.createNewReport(model2);
            }
            //iPage.Refresh ();
            // leave this page
            Navigation.PopModalAsync();
        }