﻿nvaFx.Dialogs = {
    ShowMessage     : function(titulo, msg, tipo) {
        //alert(titulo + "\n\n" + msg);
        // tipo: warning ou info
        if(tipo=="info") {
            window.setTimeout(function() {
                 Sexy.info('<h3>'+ titulo +'</h3><p>'+ msg +'</p>');
            }, 500);
        } else if(tipo=="warning") {
            window.setTimeout(function() {
                Sexy.alert('<h3>'+ titulo +'</h3><p>'+ msg +'</p>');
            }, 500);
        } 
    },
    ShowError       : function(titulo, msg, stackTrace) {
        //alert(titulo + "\n\n" + msg + "\n\n" + stackTrace);
        window.setTimeout(function() {
            Sexy.error('<h3>'+ titulo +'</h3><p>'+ msg +'<br><br>Stack Trace:<br>'+ stackTrace +'</p>');
        }, 300);
    }
}

