This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
WebClient wc = new WebClient(); | |
string webPageCode = wc.DownloadString("https://finance.yahoo.com/quote/ATC.AS?p=ATC.AS"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
using (WebClient wc = new WebClient()) | |
{ | |
string webPageCode = wc.DownloadString("https://finance.yahoo.com/quote/ATC.AS?p=ATC.AS"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; | |
namespace AlticeStockChecker | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
string webPageCode = string.Empty; | |
using (WebClient wc = new WebClient()) | |
{ | |
webPageCode = wc.DownloadString("https://finance.yahoo.com/quote/ATC.AS?p=ATC.AS"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
} | |
private void timer1_Tick(object sender, System.EventArgs e) | |
{ | |
string webPageCode = string.Empty; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Form1() | |
{ | |
InitializeComponent(); | |
this.Text = Application.ProductName; | |
GetAndCleanStockValue(); | |
} | |
private void timer1_Tick(object sender, System.EventArgs e) | |
{ | |
GetAndCleanStockValue(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Globalization; | |
using System.Net; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; | |
namespace AlticeStockChecker | |
{ | |
public partial class Form1 : Form | |
{ | |
public Form1() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (stock > lastStock && lastStock != 0.0) | |
{ | |
lblStock.ForeColor = Color.Green; | |
} | |
else if (stock < lastStock && lastStock != 0.0) | |
{ | |
lblStock.ForeColor = Color.Red; | |
} | |
else | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private string GetHTMLCode(string url) | |
{ | |
string webPageCode = string.Empty; | |
using (WebClient wc = new WebClient()) | |
{ | |
webPageCode = wc.DownloadString(url); | |
} | |
return webPageCode; |