Пример #1
0
    void OnSubmit(string value)
    {
        var lastLine = value.Split('\n').Last();

        EmptyInput();
        WriteInput(lastLine);
        if (value == "menu")
        {
            goBack.Invoke();
        }
        GuessPassword(lastLine);
    }
        /// <summary>
        /// Invoked when the hardware back button is pressed. For Windows Phone only.
        /// </summary>
        /// <param name="sender">Instance that triggered the event.</param>
        /// <param name="e">Event data describing the conditions that led to the event.</param>
        private void HardwareButtons_BackPressed(object sender, Windows.Phone.UI.Input.BackPressedEventArgs e)
        {
            if (this.GoBackCommand.CanExecute(null))
            {
                e.Handled = true;
                //this.GoBackCommand.Execute(null);

                if (OnGoBack != null)
                {
                    OnGoBack.Invoke();
                }
                else
                if (CanGoBack())
                {
                    GoBack();
                }
            }
        }
Пример #3
0
 public void GoBackEvent()
 {
     OnGoBack?.Invoke();
 }
Пример #4
0
 private void HandleDismiss() => OnGoBack?.Invoke();
 partial void OnBackPressed(NSButton sender)
 {
     OnGoBack?.Invoke(this);
 }
Пример #6
0
 private void pictb_Return_Click(object sender, EventArgs e)
 {
     OnGoBack?.Invoke();
 }