コード例 #1
0
 public OkDialog(string message)
 {
     InitializeComponent();
     _message            = message;
     this.btnOk.Clicked += (sender, arg) =>
     {
         Proccess.SetResult(true);
         _popupNavigation.PopAsync();
     };
 }
コード例 #2
0
        public ConfirmationDialog(string message)
        {
            InitializeComponent();
            _message   = message;
            OnApearing = () =>
            {
                this.btnNo.Text  = NoButtonText;
                this.btnYes.Text = YesButtonText;
            };
            this.btnNo.Clicked += (sender, args) =>
            {
                Proccess.SetResult(false);
            };

            this.btnYes.Clicked += (sender, args) =>
            {
                Proccess.SetResult(true);
            };
        }