Ejemplo n.º 1
0
        private void OnProceed(object sender, EventArgs args)
        {
            try
            {
                Task.Run(async() => await PopupNavigation.Instance.RemovePageAsync(this));

                switch (type)
                {
                case MessageType.Configuration:
                    promptPageState.OnRebound();
                    break;

                case MessageType.Exit:
                case MessageType.Logout:
                    promptPageState.OnExit();
                    break;

                case MessageType.Gps:
                    locationPageState.OnEnableLocation();
                    break;

                case MessageType.Regular:
                    promptPageState.OnResumePage(null);
                    break;

                case MessageType.Warning:
                    promptPageState.OnConfirm();
                    break;

                case MessageType.Discard:
                    promptPageState.OnSaveDraft();
                    break;
                }
            }
            catch (Exception ex)
            {
                //DisplayAlert("Error", ex.Message);
                Debug.WriteLine($"Exception after Selection Complete:  {ex}");
            }
        }
Ejemplo n.º 2
0
 private void OnSynchronize(object sender, EventArgs args)
 {
     Sync = true;
     Task.Run(async() => await PopupNavigation.Instance.RemovePageAsync(this));
     promptPageState.OnRebound();
 }