//HACK: This needs to be in an ouput class, Windows.Forms causes class conflicts with SFML.Windows private DialogResult PrintError(string errmssg, m_ErrorStatus errorStatus) { if (errorStatus == m_ErrorStatus.SEVERE) { #if DEBUG Console.WriteLine("SDLGraphics2D: " + errmssg); #endif return(MessageBox.Show(errmssg, "SEVERE GRAPHICS ERROR", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1)); } else { PrintError(errmssg); return(DialogResult.Cancel); } }
//HACK: This needs to be in an ouput class, Windows.Forms causes class conflicts with SFML.Windows private DialogResult PrintError(string errmssg, m_ErrorStatus errorStatus) { if (errorStatus == m_ErrorStatus.SEVERE) { #if DEBUG Console.WriteLine("SDLGraphics2D: " + errmssg); #endif return MessageBox.Show(errmssg, "SEVERE GRAPHICS ERROR", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } else { PrintError(errmssg); return DialogResult.Cancel; } }