I am creating an addon for Microsoft Dynamics Rms. I created a quick Tender button and this button works fine. I want to add a Yes NO dialog box but I am having some problems.

It works if I dont include the MessageBox 

```
public class Addin : Addin_Interface
{
    public bool Process(QSRules.SessionClass mySession)
    {
        if (MessageBox.Show("Do you want to Tender €10", "Tender Amount", 
            MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
        {
            SendKeys.Send("{F12}{DOWN}10.00{{ENTER}");
            return true;
            // return false;
        }
    }
}

```

I have a red error line on the Process on this line

```
public bool Process(QSRules.SessionClass mySession)

```

The error says Not all code paths return a value. Below is an image of the error

[![Visual Studio - not all code paths return a value](https://i.stack.imgur.com/qgLeV.png)](https://i.stack.imgur.com/qgLeV.png)