Updated test application for working with MtApi (MT5) version 1.0.10

This commit is contained in:
vdemydiuk
2016-10-17 11:57:54 +03:00
parent 7fec3da7bc
commit a63e628124
9 changed files with 527 additions and 267 deletions
+2 -2
View File
@@ -837,7 +837,7 @@ namespace TestApiClientUI
}
//OrderSend
private void button1_Click(object sender, EventArgs e)
private async void button1_Click(object sender, EventArgs e)
{
var symbol = textBoxOrderSymbol.Text;
@@ -878,7 +878,7 @@ namespace TestApiClientUI
break;
}
var ticket = Execute(() => _apiClient.OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrowColor));
var ticket = await Execute(() => _apiClient.OrderSend(symbol, cmd, volume, price, slippage, stoploss, takeprofit, comment, magic, expiration, arrowColor));
AddToLog(string.Format("Sended order result: ticket = {0}", ticket));
}