void btnTest_Click(object sender, RoutedEventArgs e)
        {
            UserSettingsVM.Instance.AnimeBytesCookieHeader = "";

            if (string.IsNullOrEmpty(txtUsername.Text))
            {
                MessageBox.Show(Properties.Resources.Downloads_AnimeBytesDetails, Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
                txtUsername.Focus();
                return;
            }

            UserSettingsVM.Instance.AnimeBytesUsername = txtUsername.Text.Trim();

            Window parentWindow = Window.GetWindow(this);
            parentWindow.Cursor = Cursors.Wait;
            this.IsEnabled = false;

            TorrentsAnimeBytes AnimeBytes = new TorrentsAnimeBytes();

            UserSettingsVM.Instance.AnimeBytesCookieHeader = AnimeBytes.Login(UserSettingsVM.Instance.AnimeBytesUsername, UserSettingsVM.Instance.AnimeBytesPassword);

            parentWindow.Cursor = Cursors.Arrow;
            this.IsEnabled = true;

            if (!string.IsNullOrEmpty(UserSettingsVM.Instance.AnimeBytesCookieHeader))
                MessageBox.Show(Properties.Resources.Downloads_Connected, Properties.Resources.Success, MessageBoxButton.OK, MessageBoxImage.Information);
            else
            {
                MessageBox.Show(Properties.Resources.Downloads_Failed, Properties.Resources.Error, MessageBoxButton.OK, MessageBoxImage.Error);
                txtUsername.Focus();
                return;
            }
        }
		void btnTest_Click(object sender, RoutedEventArgs e)
		{
			UserSettingsVM.Instance.AnimeBytesCookieHeader = "";

			if (string.IsNullOrEmpty(txtUsername.Text))
			{
				MessageBox.Show("Please enter Anime Byt.es login details", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
				txtUsername.Focus();
				return;
			}

			UserSettingsVM.Instance.AnimeBytesUsername = txtUsername.Text.Trim();

			Window parentWindow = Window.GetWindow(this);
			parentWindow.Cursor = Cursors.Wait;
			this.IsEnabled = false;

			TorrentsAnimeBytes AnimeBytes = new TorrentsAnimeBytes();

			UserSettingsVM.Instance.AnimeBytesCookieHeader = AnimeBytes.Login(UserSettingsVM.Instance.AnimeBytesUsername, UserSettingsVM.Instance.AnimeBytesPassword);

			parentWindow.Cursor = Cursors.Arrow;
			this.IsEnabled = true;

			if (!string.IsNullOrEmpty(UserSettingsVM.Instance.AnimeBytesCookieHeader))
				MessageBox.Show("Connected sucessfully", "Sucess", MessageBoxButton.OK, MessageBoxImage.Information);
			else
			{
				MessageBox.Show("Failed! See log for more details if needed", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
				txtUsername.Focus();
				return;
			}
		}