mirror of
https://github.com/stokebob/bnhtrade.git
synced 2026-03-19 22:47:15 +00:00
feature exchange rate update automation
Automated downloading exchange rates from HMRC and updating the database. Added function call to the console and form applications. Also added a form to show the console output in form application.
This commit is contained in:
@@ -25,6 +25,7 @@ namespace bnhtradeScheduledTasks
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("<1> Amazon reports");
|
||||
Console.WriteLine("<2> Stock functions");
|
||||
Console.WriteLine("<3> Account functions");
|
||||
Console.WriteLine("");
|
||||
Console.WriteLine("<8> Start scheduled nightly tasks");
|
||||
Console.WriteLine("<9> Dev functions");
|
||||
@@ -242,6 +243,34 @@ namespace bnhtradeScheduledTasks
|
||||
|
||||
} while (true);
|
||||
}
|
||||
else if (input == "3")
|
||||
{
|
||||
do
|
||||
{
|
||||
Console.Clear();
|
||||
Console.WriteLine(consoleHeader);
|
||||
Console.WriteLine("Main Menu > Account");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("<1> Update HMRC Exchange Rates");
|
||||
Console.WriteLine();
|
||||
Console.WriteLine("<0> Back");
|
||||
Console.WriteLine("");
|
||||
Console.Write("Enter an option >");
|
||||
input = Console.ReadLine();
|
||||
|
||||
if (input == "0")
|
||||
{
|
||||
break;
|
||||
}
|
||||
else if (input == "1")
|
||||
{
|
||||
Console.Clear();
|
||||
new bnhtrade.Core.Logic.Account.Currency().UpdateHmrcExchageRates();
|
||||
Console.WriteLine("Complete, press any key to continue...");
|
||||
Console.ReadKey();
|
||||
}
|
||||
} while (true);
|
||||
}
|
||||
else if (input == "8")
|
||||
{
|
||||
Console.Clear();
|
||||
|
||||
Reference in New Issue
Block a user