mirror of
https://github.com/vdemydiuk/mtapi.git
synced 2026-08-15 19:58:10 +00:00
Issue #35: Implemented function TerminalInfoDouble in MtApi MT4
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user