using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
#if WIN32
using MSHTML;
#else
using mshtml;
#endif
using sharpknife.Utils;
using System.Globalization;
using sharpknife.Controls;
using System.Drawing;
using System.IO;
using sharpknife.Data;
namespace sharpknife.Strategies
{
class WordLinxStrategy : Strategy
{
public override bool CheckLogin(WebBrowserControl browser, PTCSource source)
{
throw new NotImplementedException();
}
public override void Login(WebBrowserControl browser, PTCSource source)
{
//
//
//
IHTMLElementCollection inputFields = HtmlUtils.GetElementCollection(browser.Document, "input");
foreach (IHTMLElement element in inputFields)
{
IHTMLInputElement inputElement = (IHTMLInputElement)element;
if (inputElement.name == "Username")
{
inputElement.value = source.Username;
}
else if (inputElement.name == "Password")
{
inputElement.value = source.Password;
}
else if (inputElement.type == "submit")
{
element.click();
return;
}
}
}
public override decimal GetBalance(WebBrowserControl browser, PTCSource source)
{
throw new NotImplementedException();
}
public override bool SolveCaptcha(WebBrowserControl browser, PTCSource source)
{
throw new NotImplementedException();
}
public override Ad ParseMail(Mail mail)
{
throw new NotImplementedException();
}
public override bool ParseAds(WebBrowserControl browser, PTCSource source)
{
throw new NotImplementedException();
}
public override decimal GetReferrals(WebBrowserControl browser, PTCSource source)
{
throw new NotImplementedException();
}
}
}