Exemplo n.º 1
0
        public App()
        {
            InitializeComponent();

            var page = new STG_RestaurantBuzzer.MainPage();

            page.TableReady += () => TableReady?.Invoke();

            MainPage = page;
        }
Exemplo n.º 2
0
        private bool RefreshParties()
        {
            var tableReady = false;

            _groups.Clear();
            foreach (var party in _partyRepository.WaitingParties())
            {
                _groups.Add(party);
                if (party.Id == _myParty?.Id && party.WaitMinutes == 0)
                {
                    TableReady?.Invoke();
                    tableReady = true;
                }
            }

            return(!tableReady);
        }