Skip to content
This repository was archived by the owner on Sep 27, 2020. It is now read-only.

Commit 0444633

Browse files
committed
fix #16
1 parent e0737b4 commit 0444633

5 files changed

Lines changed: 53 additions & 7 deletions

File tree

Analogy.DataProviders.Extensions/Analogy.DataProviders.Extensions.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,25 @@
99
<StartupObject />
1010
<AssemblyName>Analogy.DataProviders.Extensions</AssemblyName>
1111
<RootNamespace>Analogy.DataProviders.Extensions</RootNamespace>
12-
<Version>1.0.4.3</Version>
12+
<Version>1.1.0</Version>
1313
<Authors>Lior Banai</Authors>
1414
<PackageLicenseExpression>MIT</PackageLicenseExpression>
15-
<Copyright>Lior Banai © 2020</Copyright>
15+
<Copyright>Lior Banai © 2020</Copyright>
1616
<PackageProjectUrl>https://github.com/Analogy-LogViewer/Analogy.DataProviders.Extensions</PackageProjectUrl>
1717
<RepositoryUrl>https://github.com/Analogy-LogViewer/Analogy.DataProviders.Extensions</RepositoryUrl>
1818
<RepositoryType>git</RepositoryType>
1919
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
2020
<PackageIcon>icon.png</PackageIcon>
2121
<PackageIconUrl />
22+
<Description>Extension DLL for data providers for adding UI Functionality (like user settings and others)</Description>
23+
<PackageReleaseNotes>Add interface for supplying images for data providers</PackageReleaseNotes>
2224
</PropertyGroup>
2325
<ItemGroup>
24-
<None Remove="Analogy_logo1.ico" />
2526
<None Include="..\icon.png">
2627
<Pack>True</Pack>
2728
<PackagePath></PackagePath>
2829
</None>
2930
</ItemGroup>
30-
<ItemGroup>
31-
<Content Include="Analogy_logo1.ico" />
32-
</ItemGroup>
3331
<ItemGroup>
3432
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.2.0" />
3533
<PackageReference Include="Microsoft.Build.Tasks.Git" Version="1.0.0">
-200 KB
Binary file not shown.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Drawing;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
8+
namespace Analogy.DataProviders.Extensions
9+
{
10+
public class DataProviderImages
11+
{
12+
/// <summary>
13+
/// the component (Data provider/custom Action/ etc) Id
14+
/// </summary>
15+
public Guid ItemId { get; set; }
16+
/// <summary>
17+
/// 16x16 icon to show in the Analogy UI
18+
/// </summary>
19+
public Image SmallImage { get; }
20+
/// <summary>
21+
/// 32x32 icon to show in the Analogy UI
22+
/// </summary>
23+
public Image LargeImage { get; }
24+
25+
public DataProviderImages(Guid itemId, Image smallImage, Image largeImage)
26+
{
27+
ItemId = itemId;
28+
SmallImage = smallImage;
29+
LargeImage = largeImage;
30+
}
31+
}
32+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace Analogy.DataProviders.Extensions
8+
{
9+
public interface IAnalogyComponentImages
10+
{
11+
IEnumerable<DataProviderImages> GetDataProviderImages();
12+
}
13+
}

Analogy.DataProviders.Extensions/IAnalogyDataProviderSetting.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ public interface IAnalogyDataProviderSettings
2121
/// to which Analogy Factory this user setting belong t0
2222
/// </summary>
2323
Guid FactoryId { get; set; }
24-
24+
/// <summary>
25+
/// The id of this item
26+
/// </summary>
27+
Guid ID { get; set; }
2528
Task SaveSettingsAsync();
2629
}
2730

0 commit comments

Comments
 (0)