Issue #35: Implemented function TerminalInfoDouble in MtApi MT4

This commit is contained in:
vdemydiuk
2016-11-15 11:06:43 +02:00
parent 8e5dcbd2ee
commit 8e3f206c76
8 changed files with 58 additions and 2 deletions
+11
View File
@@ -32,6 +32,7 @@ namespace TestApiClientUI
comboBox7.DataSource = Enum.GetNames(typeof(EnumSymbolInfoDouble));
comboBox8.DataSource = Enum.GetNames(typeof(MarketInfoModeType));
comboBox9.DataSource = Enum.GetNames(typeof(EnumTerminalInfoInteger));
comboBox10.DataSource = Enum.GetNames(typeof(EnumTerminalInfoDouble));
_apiClient.QuoteUpdated += apiClient_QuoteUpdated;
_apiClient.QuoteAdded += apiClient_QuoteAdded;
@@ -1275,5 +1276,15 @@ namespace TestApiClientUI
var result = await Execute(() => _apiClient.TerminalInfoInteger(propId));
PrintLog($"TerminalInfoInteger: result = {result}");
}
//TerminalInfoDouble
private async void button36_Click(object sender, EventArgs e)
{
EnumTerminalInfoDouble propId;
Enum.TryParse(comboBox10.Text, out propId);
var result = await Execute(() => _apiClient.TerminalInfoDouble(propId));
PrintLog($"TerminalInfoDouble: result = {result}");
}
}
}