public void SetupIcon(MessageBoxIcon icon)
{
switch(icon)
{
case MessageBoxIcon.Error:
this.AlertStyle = NSAlertStyle.Critical;
break;
case MessageBoxIcon.Warning :
this.AlertStyle = NSAlertStyle.Warning;
break;
default :
this.AlertStyle = NSAlertStyle.Informational;
break;
}
}