private void CustomInitialize()
        {
            ViewModel = new CharacterCreationViewModel();
            AwesomiumWebView.DocumentReady += OnDocumentReady;

            if (WinterEngineService.NetworkClient != null)
            {
                WinterEngineService.NetworkClient.OnPacketReceived += NetworkClient_OnPacketReceived;
                WinterEngineService.NetworkClient.SendRequest(PacketRequestTypeEnum.CharacterCreation, NetDeliveryMethod.ReliableUnordered);
            }
        }
        private void CreateCharacter(object sender, JavascriptMethodEventArgs e)
        {
            string json = e.Arguments[0];
            ViewModel = JsonConvert.DeserializeObject<CharacterCreationViewModel>(json);

            NewCharacterPacket packet = new NewCharacterPacket
            {
                AbilityChoices = ViewModel.AbilityChoices,
                Age = ViewModel.Age,
                CharacterClassID = ViewModel.CharacterClassID,
                FirstName = ViewModel.FirstName,
                GenderID = ViewModel.GenderID,
                LastName = ViewModel.LastName,
                PortraitID = ViewModel.PortraitID,
                RaceID = ViewModel.RaceID,
                SelectedAbilities = ViewModel.SelectedAbilities,
                SkillPoints = ViewModel.SkillPoints
            };

            if (WinterEngineService.NetworkClient != null)
            {
                WinterEngineService.NetworkClient.SendPacket(packet, NetDeliveryMethod.ReliableUnordered);
            }
        }