Skip to content

Commit f85ff48

Browse files
Update plugins examples
1 parent ab028ea commit f85ff48

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Plugins/BrowserBasedPlugin/CustomPlugin/BrowserBasedPlugin.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
5-
<BaseOutputPath>D:\QuantowerVersions\Quantower\TradingPlatform\v1.124.7\bin\plug-ins\WebBrowserBased</BaseOutputPath>
4+
<TargetFramework>net8</TargetFramework>
5+
<BaseOutputPath></BaseOutputPath>
66
</PropertyGroup>
77

88
<ItemGroup>
@@ -15,12 +15,10 @@
1515

1616
<ItemGroup>
1717
<Reference Include="TradingPlatform.BusinessLayer">
18-
<HintPath>..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.124.7\bin\TradingPlatform.BusinessLayer.dll</HintPath>
19-
<CopyLocal>False</CopyLocal>
18+
<HintPath>..\..\..\..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.141.15\bin\TradingPlatform.BusinessLayer.dll</HintPath>
2019
</Reference>
2120
<Reference Include="TradingPlatform.PresentationLayer.Plugins">
22-
<HintPath>..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.124.7\bin\TradingPlatform.PresentationLayer.Plugins.dll</HintPath>
23-
<CopyLocal>False</CopyLocal>
21+
<HintPath>..\..\..\..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.141.15\bin\TradingPlatform.PresentationLayer.Plugins.dll</HintPath>
2422
</Reference>
2523
</ItemGroup>
2624

Plugins/GDIBasedPlugin/GDIBasedPlugin/GDIBasedPlugin.csproj

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFramework>net8</TargetFramework>
5+
<BaseOutputPath></BaseOutputPath>
56
</PropertyGroup>
67

78
<ItemGroup>
8-
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
9+
<PackageReference Include="System.Drawing.Common" Version="8.0.8" />
910
</ItemGroup>
1011

1112
<ItemGroup>
1213
<Reference Include="TradingPlatform.BusinessLayer">
13-
<HintPath>D:\QuantowerVersions\Quantower\TradingPlatform\v1.116.1\bin\TradingPlatform.BusinessLayer.dll</HintPath>
14+
<HintPath>..\..\..\..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.141.15\bin\TradingPlatform.BusinessLayer.dll</HintPath>
1415
</Reference>
1516
<Reference Include="TradingPlatform.PresentationLayer.Plugins">
16-
<HintPath>D:\QuantowerVersions\Quantower\TradingPlatform\v1.116.1\bin\TradingPlatform.PresentationLayer.Plugins.dll</HintPath>
17+
<HintPath>..\..\..\..\..\..\QuantowerVersions\Quantower\TradingPlatform\v1.141.15\bin\TradingPlatform.PresentationLayer.Plugins.dll</HintPath>
1718
</Reference>
1819
</ItemGroup>
1920

Plugins/GDIBasedPlugin/GDIBasedPlugin/GDIRenderer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using TradingPlatform.PresentationLayer.Plugins;
55
using TradingPlatform.PresentationLayer.Renderers;
66
using System.Linq;
7+
using System;
78

89
namespace GDIBasedPlugin
910
{
@@ -27,7 +28,7 @@ public GDIRenderer(IRenderingNativeControl native)
2728

2829
//
2930
this.Color = Color.Black;
30-
this.bufferedGraphic = new BufferedGraphic(this.Draw, this.Refresh, native.DisposeImage, native.IsDisplayed);
31+
this.bufferedGraphic = new BufferedGraphic(this.Draw, this.Refresh, native.DisposeImage, native.IsDisplayed, BufferedGraphicRequiredThreadType.LowPriority);
3132
}
3233

3334
public void RedrawBufferedGraphic()
@@ -57,7 +58,7 @@ protected virtual void Draw(Graphics gr)
5758
}
5859
}
5960

60-
public override object Render() => bufferedGraphic.CurrentImage;
61+
public override IntPtr Render() => bufferedGraphic.CurrentImage;
6162

6263
public override void Dispose()
6364
{

0 commit comments

Comments
 (0)