create LibraryPlugin project
This commit is contained in:
parent
328b25c576
commit
bcecbf9c77
13
LibraryPlugin/Helpers/PluginsConventionElement.cs
Normal file
13
LibraryPlugin/Helpers/PluginsConventionElement.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace LibraryPlugin.Helpers
|
||||||
|
{
|
||||||
|
public class PluginsConventionElement
|
||||||
|
{
|
||||||
|
public Guid Id { get; set; }
|
||||||
|
}
|
||||||
|
}
|
13
LibraryPlugin/Helpers/PluginsConventionSaveDocument.cs
Normal file
13
LibraryPlugin/Helpers/PluginsConventionSaveDocument.cs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace LibraryPlugin.Helpers
|
||||||
|
{
|
||||||
|
public class PluginsConventionSaveDocument
|
||||||
|
{
|
||||||
|
public string FileName { get; set; } = string.Empty;
|
||||||
|
}
|
||||||
|
}
|
23
LibraryPlugin/IPluginsConvention.cs
Normal file
23
LibraryPlugin/IPluginsConvention.cs
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
using LibraryPlugin.Helpers;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace LibraryPlugin
|
||||||
|
{
|
||||||
|
public interface IPluginsConvention
|
||||||
|
{
|
||||||
|
string PluginName { get; }
|
||||||
|
UserControl GetControl { get; }
|
||||||
|
PluginsConventionElement GetElement { get; }
|
||||||
|
Form GetForm(PluginsConventionElement element);
|
||||||
|
Form GetThesaurus();
|
||||||
|
bool DeleteElement(PluginsConventionElement element);
|
||||||
|
void ReloadData();
|
||||||
|
bool CreateSimpleDocument(PluginsConventionSaveDocument saveDocument);
|
||||||
|
bool CreateTableDocument(PluginsConventionSaveDocument saveDocument);
|
||||||
|
bool CreateChartDocument(PluginsConventionSaveDocument saveDocument);
|
||||||
|
}
|
||||||
|
}
|
10
LibraryPlugin/LibraryPlugin.csproj
Normal file
10
LibraryPlugin/LibraryPlugin.csproj
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -13,6 +13,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LibraryDatabase", "LibraryD
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryUtils", "LibraryUtils\LibraryUtils.csproj", "{C2309DD0-4F3E-42C5-9727-793219E25E09}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryUtils", "LibraryUtils\LibraryUtils.csproj", "{C2309DD0-4F3E-42C5-9727-793219E25E09}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibraryPlugin", "LibraryPlugin\LibraryPlugin.csproj", "{43977511-4067-4355-91E7-3C45F2685248}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -39,6 +41,10 @@ Global
|
|||||||
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Release|Any CPU.Build.0 = Release|Any CPU
|
{C2309DD0-4F3E-42C5-9727-793219E25E09}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{43977511-4067-4355-91E7-3C45F2685248}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{43977511-4067-4355-91E7-3C45F2685248}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{43977511-4067-4355-91E7-3C45F2685248}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{43977511-4067-4355-91E7-3C45F2685248}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user