Exemplo n.º 1
0
        /// <summary>
        /// On create method
        /// </summary>
        protected override void OnCreate()
        {
            base.OnCreate();
            window = GetDefaultWindow();
            window.BackgroundColor = Color.Blue;
            window.KeyEvent       += OnKeyEvent;

            navigator = window.GetDefaultNavigator();
            page      = new AccountSignIn();
            navigator.Push(page);
        }
        /// <summary>
        /// Event when "SIGN OUT" button is clicked.
        /// </summary>
        /// <param name="sender"> Parameter about which object is invoked the current event. </param>
        /// <param name="args"> Event arguments</param>
        public void SignOutClicked(object sender, EventArgs args)
        {
            //
            var button = new Button()
            {
                Text = "OK",
            };

            button.Clicked += (object s, ClickedEventArgs a) =>
            {
                Navigator?.Pop();
                AccountSignIn xamlPage = new AccountSignIn();
                Navigator?.Push(xamlPage);
            };
            DialogPage.ShowAlertDialog("Account Deleted", "ID : " + AccountLabel.Text, button);
        }