Exemplo n.º 1
0
        private async void SendEventChanges()
        {
            _isConfirmChanges = true;
            if (_isUpdateEvent)
            {
                await Navigation.PopAsync(false);

                _ = _viewModel.UpdateEventOfMatchAsync(_eventOfMatch, _selectedMatch);
            }
            else
            {
                if (_matchEventName != "GOAL")
                {
                    await Navigation.PopAsync(false);
                }
                _ = _viewModel.AddEventOfMatch(_eventOfMatch, _selectedMatch);
                if (_matchEventName == "GOAL")
                {
                    _matchEventName      = "ASSIST";
                    MainView.IsVisible   = false;
                    AssistView.IsVisible = true;
                }
            }
        }