Пример #1
0
        private async Task ExitOnRequest()
        {
            bool accept = await DisplayAlert("Warning", "Are you sure you want to exit?", "Yes", "No");

            if (accept)
            {
                ICloser closer = DependencyService.Get <ICloser>();
                if (closer != null)
                {
                    closer.Close();
                }
            }
        }
Пример #2
0
 public override void Close() => _closer?.Close();
Пример #3
0
 public new void Dispose() => _closer?.Close();