Refactored MtApi.mq4

This commit is contained in:
vdemydiuk
2016-12-21 12:01:15 +02:00
parent f5f13a13cc
commit 8f5a1c8222
4 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -858,10 +858,10 @@ namespace MtApi
return SendCommand<int>(MtCommandType.MessageBox, commandParameters);
}
public void PlaySound(string filename)
public bool PlaySound(string filename)
{
var commandParameters = new ArrayList { filename };
SendCommand<object>(MtCommandType.PlaySound, commandParameters);
return SendCommand<bool>(MtCommandType.PlaySound, commandParameters);
}
public void Print(string msg)
@@ -882,10 +882,10 @@ namespace MtApi
return SendCommand<bool>(MtCommandType.SendFTPA, commandParameters);
}
public void SendMail(string subject, string someText)
public bool SendMail(string subject, string someText)
{
var commandParameters = new ArrayList { subject, someText };
SendCommand<object>(MtCommandType.SendMail, commandParameters);
return SendCommand<bool>(MtCommandType.SendMail, commandParameters);
}
public void Sleep(int milliseconds)
+2 -2
View File
@@ -135,8 +135,8 @@
iBullsPower = 106,
iCCI = 107,
iCCIOnArray = 108,
iCustom = 109,
iCustom_d = 10109,
//iCustom = 109,
//iCustom_d = 10109,
iDeMarker = 110,
iEnvelopes = 111,
iEnvelopesOnArray = 112,
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.