Small refactoring MtApi (MT5) and MtService. Started version 1.0.22 of MtService

This commit is contained in:
vdemydiuk
2016-10-10 15:49:53 +03:00
parent b4b8e7eaf0
commit 3785ee4ace
7 changed files with 488 additions and 524 deletions
+3 -12
View File
@@ -1,28 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MtApi5
{
static class ExtensionMethods
internal static class ExtensionMethods
{
#region Event Methods
public static void FireEvent(this EventHandler eventHandler, object sender)
{
if (eventHandler != null)
{
eventHandler(sender, EventArgs.Empty);
}
eventHandler?.Invoke(sender, EventArgs.Empty);
}
public static void FireEvent<T>(this EventHandler<T> eventHandler, object sender, T e)
where T : EventArgs
{
if (eventHandler != null)
{
eventHandler(sender, e);
}
eventHandler?.Invoke(sender, e);
}
#endregion
+1
View File
@@ -35,6 +35,7 @@
<Reference Include="System" />
<Reference Include="System.Configuration.Install" />
<Reference Include="System.Core" />
<Reference Include="System.ServiceModel" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
+407 -394
View File
File diff suppressed because it is too large Load Diff