private void LoginButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrWhiteSpace(usernameTextBox.Text) || string.IsNullOrWhiteSpace(passwordPasswordBox.Password))
            {
                MessageBox.Show(Properties.Resources.EmptyFieldsErrorText);
                return;
            }
            EngineNetwork.EstablishConnection();
            Session.Cuenta = new Cuenta(usernameTextBox.Text, passwordPasswordBox.Password);
            byte codeResponse = 0;

            if (Session.Cuenta.Login(out codeResponse))
            {
                Session.MainMenu             = new MainMenuWindow();;
                Session.Login                = this;
                passwordPasswordBox.Password = "";
                Session.MainMenu.Show();
                Hide();
            }
            else
            {
                switch (codeResponse)
                {
                case (byte)NetworkServerResponses.AccountNotConfirmed:
                    MessageBox.Show(Properties.Resources.AccountNotConfirmedErrorText);
                    break;

                case (byte)NetworkServerResponses.LoginError:
                    MessageBox.Show(Properties.Resources.LoginErrorText);
                    break;
                }
            }
        }