public static void SetVar(string name, string value)
 {
     if (GetInstance()._cvars.Where(c => c.Name == name).Any())
     {
         var cvar = GetInstance()._cvars.Where(c => c.Name == name).First();
         cvar.Value = value;
     }
     else
     {
         ConsoleVar v = new ConsoleVar();
         v.Name = name;
         v.Value = value;
         GetInstance()._cvars.Add(v);
     }
 }
 private static void LogCvar(ConsoleVar cvar )
 {
     MessageService.LogMessage(cvar.Name + " : " + cvar.Value);
 }