I would like to use a method, that creates a message box:
public class Layout
{
public void MBox(string msgText, string msgCaption, MessageBoxButtons msgButton, MessageBoxIcon msgIcon)
{
MessageBox.Show(msgText, msgCaption, msgButton, msgIcon);
}
}
Now, I try to open it by using the following code:
Layout _layout = new Layout();
_layout.MBox("Hello", "Hello again", OK, None);
Unfortunately, the application does not know "OK" and "None". What is my mistake? Could you please help me? Thanks in advance. Kind regards! ;)