viewgit/index.php:465 Only variables should be passed by reference [2048]
viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]
using System; namespace Dizzy { public class Log { public delegate void LogEvent (string message); public static event LogEvent StatusBarUpdate; public Log () { } public static void Error (string message) { // Facciamo capire che è un errore ConsoleColor initial = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.DarkRed; Console.Write (" ==> "); Console.ForegroundColor = initial; Console.WriteLine (message); } public static void Warning (string message) { // Facciamo capire che è un errore ConsoleColor initial = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Cyan; Console.Write (" ==> "); Console.ForegroundColor = initial; Console.WriteLine (message); } public static void Info (string message) { // Facciamo capire che è un errore ConsoleColor initial = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.Green; Console.Write (" ==> "); Console.ForegroundColor = initial; Console.WriteLine (message); try {StatusBarUpdate(message);} catch (Exception e) { Log.Error ("Impossibile loggare sulla statusbar"); } } public static void Lock (string message) { ConsoleColor initial = Console.ForegroundColor; Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write (" ==> "); Console.ForegroundColor = initial; Console.WriteLine (message); } } }