I want this in mono but all the code is different, i know almost nothing about mono. < all i know is the c# part(by precise code)
^i just want to make an app out of it
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Net;
using System.IO;
using System.Text;
using System.Windows.Forms;
namespace Bigpond
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
WebBrowser wb = new WebBrowser();
private void Form1_Load(object sender, EventArgs e)
{
wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_DocumentCompleted);
}
void wb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (wb.ReadyState == WebBrowserReadyState.Complete)
{
HtmlElementCollection classButton = wb.Document.All;
foreach (HtmlElement element in classButton)
{
if (element.GetAttribute("className") == "btn-blue")
{
wb.Document.GetElementById("username").InnerText = "My_username"; //the textbox i insert my username
wb.Document.GetElementById("password").InnerText = "My_password"; //the textbox i insert my password
wb.Document.InvokeScript("submitLoginForm");
break;
}
if (element.GetAttribute("className") == "with-only-usage")
{
element.InvokeMember("click");
}
if (element.GetAttribute("className") == "inner")
{
element.InvokeMember("click");
}
if (element.GetAttribute("className") == "usage-detail-container usage-so-far")
{
label1.Text = ("Cap: ") + element.InnerText;
//break;
}
if (element.GetAttribute("className") == "usage-detail-container remains")
{
label2.Text = ("Remaining: ") + element.InnerText;
//break;
}
if (element.GetAttribute("className") == "usage-detail-container days-remaining")
{
label3.Text = ("Days: ") + element.InnerText;
break;
}
}
}
}
private void label1_Click(object sender, EventArgs e)
{
}
}
}