public MainViewModel()
 {
     LoginConfig.Instance.Load();
     Proxy = new DofusRetroProxy(LoginConfig.Instance.PathDofus, new Account()
     {
         Username = LoginConfig.Instance.Username, Password = LoginConfig.Instance.Password
     });
     InteractivObject.Initialize();
     Map.Initialize();
     Spell.Initialize();
     _CharacterViewModel  = new CharacterViewModel(Proxy.Account.Character.Characteristics, Proxy.Account);
     _InventoryViewModel  = new InventoryViewModel(Proxy.Account);
     _MagicForgeViewModel = new MagicForgeViewModel(Proxy.Account);
     Navigate(_CharacterViewModel);
 }
        public MainViewModel()
        {
            Proxy = new DofusRetroProxy(@"C:\Users\ABCD\AppData\Roaming\Ascalion Launcher\client\resources\app\retroclient", new Account()
            {
                Username = "******", Password = "******"
            });
            InteractivObject.Initialize();
            Map.Initialize();
            Spell.Initialize();
            Logs = new ObservableCollection <LogEventInfo>();
            DofusServer server = new DofusServer(@"

");

            Proxy.Account.AccountStateUpdate            += HandleStateUpdate;
            Proxy.Account.Character.CharacterNameUpdate += HandleNameUpdate;
            _logTarget = new MemoryEventTarget();
            _logTarget.EventReceived += LogReceived;
            NLog.Config.SimpleConfigurator.ConfigureForTargetLogging(_logTarget);
            //configuration.AddRule(LogLevel.Debug, LogLevel.Fatal, log_console);
            //LogManager.Configuration = configuration;
            //ServerEntity s_entity = server.Active(true, 779);
        }