Пример #1
0
        public MessageBox(MessageBoxSeverity severity)
        {
            Severity = severity;
            Buttons  = new List <MessageBoxButton>();

            Title = $"Chroma Framework - {Severity}";
        }
Пример #2
0
 public static void Show(MessageBoxSeverity severity, string title, string message, Window owner = null)
 {
     if (SDL2.SDL_ShowSimpleMessageBox(
             (SDL2.SDL_MessageBoxFlags)severity,
             title,
             message,
             owner?.Handle ?? IntPtr.Zero
             ) < 0)
     {
         Log.Error($"Couldn't show message box: {SDL2.SDL_GetError()}");
     }
 }