diff --git a/VisualComponentsForm/PluginLib/PluginLib.csproj b/VisualComponentsForm/PluginLib/PluginLib.csproj new file mode 100644 index 0000000..f8f6470 --- /dev/null +++ b/VisualComponentsForm/PluginLib/PluginLib.csproj @@ -0,0 +1,15 @@ + + + + net7.0 + enable + enable + + + + + + + + + diff --git a/VisualComponentsForm/PluginsLib/IPluginsConvention.cs b/VisualComponentsForm/PluginsLib/IPluginsConvention.cs new file mode 100644 index 0000000..03c0894 --- /dev/null +++ b/VisualComponentsForm/PluginsLib/IPluginsConvention.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PluginsLib +{ + 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); + } +} diff --git a/VisualComponentsForm/PluginsLib/PluginsConventionElement.cs b/VisualComponentsForm/PluginsLib/PluginsConventionElement.cs new file mode 100644 index 0000000..2e89dca --- /dev/null +++ b/VisualComponentsForm/PluginsLib/PluginsConventionElement.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PluginsLib +{ + public class PluginsConventionElement + { + public Guid Id { get; set; } + } +} diff --git a/VisualComponentsForm/PluginsLib/PluginsConventionSaveDocument.cs b/VisualComponentsForm/PluginsLib/PluginsConventionSaveDocument.cs new file mode 100644 index 0000000..156277f --- /dev/null +++ b/VisualComponentsForm/PluginsLib/PluginsConventionSaveDocument.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PluginsLib +{ + public class PluginsConventionSaveDocument + { + public string FileName { get; set; } + } +} diff --git a/VisualComponentsForm/PluginsLib/PluginsLib.csproj b/VisualComponentsForm/PluginsLib/PluginsLib.csproj new file mode 100644 index 0000000..ca22ca3 --- /dev/null +++ b/VisualComponentsForm/PluginsLib/PluginsLib.csproj @@ -0,0 +1,22 @@ + + + + net7.0-windows + enable + enable + + + + + + + + + + + + + + + + diff --git a/VisualComponentsForm/VisualComponentsForm.sln b/VisualComponentsForm/VisualComponentsForm.sln index 9a443d9..a43bc62 100644 --- a/VisualComponentsForm/VisualComponentsForm.sln +++ b/VisualComponentsForm/VisualComponentsForm.sln @@ -7,14 +7,16 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisualComponentsForm", "Vis EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VisualComponentsLib", "..\VisualComponentsLib\VisualComponentsLib.csproj", "{F5B8AE30-4836-44F8-AC47-75D2B05D73EF}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataModels", "DataModels\DataModels.csproj", "{D208DBE1-5E90-4611-BAFD-2B021BCE0ADA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DataModels", "DataModels\DataModels.csproj", "{D208DBE1-5E90-4611-BAFD-2B021BCE0ADA}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Contracts", "Contracts\Contracts.csproj", "{E78467E3-3100-4F40-B454-7C44CB49FAB4}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contracts", "Contracts\Contracts.csproj", "{E78467E3-3100-4F40-B454-7C44CB49FAB4}" ProjectSection(ProjectDependencies) = postProject {D208DBE1-5E90-4611-BAFD-2B021BCE0ADA} = {D208DBE1-5E90-4611-BAFD-2B021BCE0ADA} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DatabaseImplement", "DatabaseImplement\DatabaseImplement.csproj", "{2985D756-04FC-485F-BF53-95C02C43E1C2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DatabaseImplement", "DatabaseImplement\DatabaseImplement.csproj", "{2985D756-04FC-485F-BF53-95C02C43E1C2}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PluginsLib", "PluginsLib\PluginsLib.csproj", "{BB23AF9D-1359-4E2B-9FE4-BA971B3D6F83}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -42,6 +44,10 @@ Global {2985D756-04FC-485F-BF53-95C02C43E1C2}.Debug|Any CPU.Build.0 = Debug|Any CPU {2985D756-04FC-485F-BF53-95C02C43E1C2}.Release|Any CPU.ActiveCfg = Release|Any CPU {2985D756-04FC-485F-BF53-95C02C43E1C2}.Release|Any CPU.Build.0 = Release|Any CPU + {BB23AF9D-1359-4E2B-9FE4-BA971B3D6F83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB23AF9D-1359-4E2B-9FE4-BA971B3D6F83}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB23AF9D-1359-4E2B-9FE4-BA971B3D6F83}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB23AF9D-1359-4E2B-9FE4-BA971B3D6F83}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE