You need to supply the type:
_layout.MBox("Hello", "Hello again", MessageBoxButtons.OK, MessageBoxIcon.None);
Additionally you could use default parameters to shorten the default case:
public void MBox(string msgText, string msgCaption,
MessageBoxButtons msgButton = MessageBoxButtons.OK,
MessageBoxIcon msgIcon = MessageBoxIcon.None)
{
MessageBox.Show(msgText, msgCaption, msgButton, msgIcon);
}
The you can leave that two parameters out if they are Ok
and None
:
_layout.MBox("Hello", "Hello again");