Initialized

- Control mit dem Tabellen bearbeitet werden können
- Bei Auswahl von Elementen wird ein Event ausgelöst
- Das Event behandelt dann ein Ergebnis im Hauptprogramm
This commit is contained in:
Eugen Höglinger 2023-08-29 11:55:31 +02:00
commit 5c91fd916d
59 changed files with 2044 additions and 0 deletions

Binary file not shown.

BIN
Daten/Pfeil_links.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

BIN
Daten/Pfeil_oben.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

BIN
Daten/Pfeil_rechts.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

BIN
Daten/Pfeil_unten.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

6
HE-Test_Dll/App.config Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
</configuration>

158
HE-Test_Dll/Form1.Designer.cs generated Normal file
View File

@ -0,0 +1,158 @@
namespace HE_Test_Dll
{
partial class Form1
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Windows Form-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.buttonShowInfo = new System.Windows.Forms.Button();
this.groupBoxProgramInfo = new System.Windows.Forms.GroupBox();
this.labelProgramInfo = new System.Windows.Forms.Label();
this.groupBoxDLLInfo = new System.Windows.Forms.GroupBox();
this.labelDLLInfo = new System.Windows.Forms.Label();
this.userControl1 = new Test_UserControl.UserControl1();
this.labelResult = new System.Windows.Forms.Label();
this.groupBoxProgramInfo.SuspendLayout();
this.groupBoxDLLInfo.SuspendLayout();
this.SuspendLayout();
//
// buttonShowInfo
//
this.buttonShowInfo.Location = new System.Drawing.Point(12, 287);
this.buttonShowInfo.Name = "buttonShowInfo";
this.buttonShowInfo.Size = new System.Drawing.Size(776, 23);
this.buttonShowInfo.TabIndex = 0;
this.buttonShowInfo.Text = "Start";
this.buttonShowInfo.UseVisualStyleBackColor = true;
this.buttonShowInfo.Click += new System.EventHandler(this.buttonShowInfo_Click);
//
// groupBoxProgramInfo
//
this.groupBoxProgramInfo.Controls.Add(this.labelProgramInfo);
this.groupBoxProgramInfo.Location = new System.Drawing.Point(12, 372);
this.groupBoxProgramInfo.Name = "groupBoxProgramInfo";
this.groupBoxProgramInfo.Size = new System.Drawing.Size(385, 66);
this.groupBoxProgramInfo.TabIndex = 11;
this.groupBoxProgramInfo.TabStop = false;
this.groupBoxProgramInfo.Text = "Programm Information";
//
// labelProgramInfo
//
this.labelProgramInfo.AutoSize = true;
this.labelProgramInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelProgramInfo.Location = new System.Drawing.Point(7, 20);
this.labelProgramInfo.Name = "labelProgramInfo";
this.labelProgramInfo.Size = new System.Drawing.Size(16, 13);
this.labelProgramInfo.TabIndex = 0;
this.labelProgramInfo.Text = "...";
//
// groupBoxDLLInfo
//
this.groupBoxDLLInfo.Controls.Add(this.labelDLLInfo);
this.groupBoxDLLInfo.Location = new System.Drawing.Point(403, 372);
this.groupBoxDLLInfo.Name = "groupBoxDLLInfo";
this.groupBoxDLLInfo.Size = new System.Drawing.Size(385, 66);
this.groupBoxDLLInfo.TabIndex = 12;
this.groupBoxDLLInfo.TabStop = false;
this.groupBoxDLLInfo.Text = "DLL Information";
//
// labelDLLInfo
//
this.labelDLLInfo.AutoSize = true;
this.labelDLLInfo.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.labelDLLInfo.Location = new System.Drawing.Point(7, 20);
this.labelDLLInfo.Name = "labelDLLInfo";
this.labelDLLInfo.Size = new System.Drawing.Size(16, 13);
this.labelDLLInfo.TabIndex = 0;
this.labelDLLInfo.Text = "...";
//
// userControl1
//
this.userControl1.ButtonAddSeparatorAvailability = 0;
this.userControl1.ButtonAddSeparatorVisibility = 0;
this.userControl1.ButtonDownAvailability = 0;
this.userControl1.ButtonDownVisibility = 0;
this.userControl1.ButtonUpAvailability = 0;
this.userControl1.ButtonUpVisibility = 0;
this.userControl1.CheckBoxEncryptAvailability = 0;
this.userControl1.CheckBoxEncryptStatusSelected = false;
this.userControl1.CheckBoxEncryptVisibility = 0;
this.userControl1.CheckBoxStandardAvailability = 0;
this.userControl1.CheckBoxStandardStatusSelected = false;
this.userControl1.CheckBoxStandardVisibility = 0;
this.userControl1.Location = new System.Drawing.Point(12, 12);
this.userControl1.MaximumSize = new System.Drawing.Size(120, 170);
this.userControl1.MinimumSize = new System.Drawing.Size(90, 127);
this.userControl1.Name = "userControl1";
this.userControl1.PressedButton = null;
this.userControl1.Size = new System.Drawing.Size(90, 127);
this.userControl1.SizeX = 0;
this.userControl1.SizeY = 0;
this.userControl1.TabIndex = 13;
//
// labelResult
//
this.labelResult.AutoSize = true;
this.labelResult.Location = new System.Drawing.Point(12, 204);
this.labelResult.Name = "labelResult";
this.labelResult.Size = new System.Drawing.Size(16, 13);
this.labelResult.TabIndex = 14;
this.labelResult.Text = "...";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.labelResult);
this.Controls.Add(this.userControl1);
this.Controls.Add(this.groupBoxProgramInfo);
this.Controls.Add(this.groupBoxDLLInfo);
this.Controls.Add(this.buttonShowInfo);
this.Name = "Form1";
this.Text = "Test_InfoBox";
this.Load += new System.EventHandler(this.Form1_Load);
this.groupBoxProgramInfo.ResumeLayout(false);
this.groupBoxProgramInfo.PerformLayout();
this.groupBoxDLLInfo.ResumeLayout(false);
this.groupBoxDLLInfo.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonShowInfo;
private System.Windows.Forms.GroupBox groupBoxProgramInfo;
private System.Windows.Forms.Label labelProgramInfo;
private System.Windows.Forms.GroupBox groupBoxDLLInfo;
private System.Windows.Forms.Label labelDLLInfo;
private Test_UserControl.UserControl1 userControl1;
private System.Windows.Forms.Label labelResult;
}
}

248
HE-Test_Dll/Form1.cs Normal file
View File

@ -0,0 +1,248 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Xml.Linq;
using Test_UserControl;
using static System.Net.Mime.MediaTypeNames;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.ToolTip;
namespace HE_Test_Dll
{
public partial class Form1 : Form
{
#region Version und Copyright
// Version und Copyright
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
static object[] attributes = System.Reflection.Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
string copyright = GenerateCopyright();
//string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit
static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString();
string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime()
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
return buildDateTime;
}
private static string CurrentYear()
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
private static string StartYear()
{
//string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
//return startYear.Remove(0, startYear.LastIndexOf(" ") + 1);
string startYear = "";
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
{
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
while (startYear.StartsWith(" "))
{
startYear = startYear.Remove(0, 1);
}
startYear = startYear.Remove(startYear.IndexOf(" "));
return startYear;
}
else
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
}
private static string GenerateCopyright()
{
string startYear = StartYear();
string currentYear = CurrentYear();
if (startYear == currentYear)
{
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
else
{
//return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear);
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
}
}
#endregion
#region Programm-Info
/// <summary>
/// Contains the name of the program file
/// </summary>
public static string ProgramName { set; get; }
/// <summary>
/// Contains the version of the program file
/// </summary>
public static string ProgramVersion { set; get; }
/// <summary>
/// Contains the copyright notice
/// </summary>
public static string Copyright { set; get; }
private void SetProgramInfo()
{
//Name, Version und Copyright setzen
ProgramName = programName;
ProgramVersion = programVersion;
Copyright = copyright;
}
#endregion
public Form1()
{
SetProgramInfo();
InitializeComponent();
}
//Prüft ob der Initialisierungsprozess läuft.
//Nach der Initialisierung wird der Wert auf 'true' gesetzt.
bool initialized = false;
private void Form1_Load(object sender, EventArgs e)
{
//Programm-Information ausgeben
labelProgramInfo.Text = String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", Copyright); // Zeigt die Programm-Information an
//DLL-Information ausgeben
labelDLLInfo.Text = String.Concat(Test_UserControl.UserControl1.DllName, "\r\n", Test_UserControl.UserControl1.DllVersion, "\r\n", Test_UserControl.UserControl1.Copyright); // Zeigt die DLL-Information an
//Ereignisse abbonieren
userControl1.ButtonUpClick += DoMoveUp;
userControl1.ButtonDownClick += DoMoveDown;
userControl1.ButtonAddSeparatorClick += DoAddSeperator;
userControl1.CheckboxEncryptCheck += DoEncrypt;
userControl1.CheckboxStandardCheck += DoStandard;
//Das Aussehen des Controlls setzen
InitializeUserControl();
initialized = true;
}
private void InitializeUserControl()
{
userControl1.ButtonUpAvailability = (int)Availability.Enabled;
userControl1.ButtonUpVisibility = (int)Visibility.Visible;
userControl1.ButtonDownAvailability = (int)Availability.Enabled;
userControl1.ButtonDownVisibility = (int)Visibility.Visible;
userControl1.ButtonAddSeparatorAvailability = (int)Availability.Enabled;
userControl1.ButtonAddSeparatorVisibility = (int)Visibility.Visible;
userControl1.CheckBoxEncryptAvailability = (int)Availability.Enabled;
userControl1.CheckBoxEncryptVisibility = (int)Visibility.Visible;
userControl1.CheckBoxEncryptStatusSelected = (bool)true;
userControl1.CheckBoxStandardAvailability = (int)Availability.Enabled;
userControl1.CheckBoxStandardVisibility = (int)Visibility.Visible;
userControl1.CheckBoxStandardStatusSelected = (bool)true;
userControl1.SizeX = 90;
userControl1.SizeY = 127;
userControl1.SetVisibility();
}
private void buttonShowInfo_Click(object sender, EventArgs e)
{
//
// Diese Zeilen gehört in das Programm kopiert
//
//
//Hat bei diesem Programm keine Funktion !!!
MessageBox.Show("Hat bei diesem Programm keine Funktion !!!");
//
//
}
#region Ereignisse
//Die Ereignisse werden nach betätigen eines Elementes aufgerufen
private void DoMoveUp(object source, EventArgs e)
{
//Weil sich Zustände der Elemente während der Initialisierung ändern,
//wird die Ausführung der folgenden Aktionen unterdrückt
if (initialized)
{
MessageBox.Show("Juhu, hat funktioniert");
labelResult.Text = "Button Up gedrückt";
}
}
private void DoMoveDown(object source, EventArgs e)
{
//Weil sich Zustände der Elemente während der Initialisierung ändern,
//wird die Ausführung der folgenden Aktionen unterdrückt
if (initialized)
{
MessageBox.Show("Juhu, hat funktioniert");
labelResult.Text = "Button Down gedrückt";
}
}
private void DoAddSeperator(object source, EventArgs e)
{
//Weil sich Zustände der Elemente während der Initialisierung ändern,
//wird die Ausführung der folgenden Aktionen unterdrückt
if (initialized)
{
MessageBox.Show("Juhu, hat funktioniert");
labelResult.Text = "Button AddSeperator gedrückt";
}
}
private void DoEncrypt(object source, EventArgs e)
{
//Weil sich Zustände der Elemente während der Initialisierung ändern,
//wird die Ausführung der folgenden Aktionen unterdrückt
if (initialized)
{
MessageBox.Show("Juhu, hat funktioniert");
if (userControl1.CheckBoxEncryptStatusSelected == false)
{
labelResult.Text = "Checkbox Chiffrieren angewählt";
}
else
{
labelResult.Text = "Checkbox Chiffrieren abgewählt";
}
}
}
private void DoStandard(object source, EventArgs e)
{
//Weil sich Zustände der Elemente während der Initialisierung ändern,
//wird die Ausführung der folgenden Aktionen unterdrückt
if (initialized)
{
MessageBox.Show("Juhu, hat funktioniert");
if (userControl1.CheckBoxStandardStatusSelected == false)
{
labelResult.Text = "Checkbox Standard angewählt";
}
else
{
labelResult.Text = "Checkbox Standard abgewählt";
}
}
}
#endregion
}
}

120
HE-Test_Dll/Form1.resx Normal file
View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{4381B7EE-3EC7-45DF-A719-7C83DA83F610}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>HE_Test_Dll</RootNamespace>
<AssemblyName>HE-Test_Dll</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>false</Deterministic>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="testUserControl1">
<HintPath>..\Test_UserControl\bin\Debug\testUserControl1.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

22
HE-Test_Dll/Program.cs Normal file
View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HE_Test_Dll
{
internal static class Program
{
/// <summary>
/// Der Haupteinstiegspunkt für die Anwendung.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("HE_Test_Dll")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("HE_Test_Dll")]
[assembly: AssemblyCopyright("Copyright © 2022 by Eugen Höglinger")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("4381b7ee-3ec7-45df-a719-7c83da83f610")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
namespace Properties
{
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if (object.ReferenceEquals(resourceMan, null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
</startup>
</configuration>

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
91eb5b545beb72954c33bc6378c7d5e5a4940b7b

View File

@ -0,0 +1,13 @@
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.AssemblyReference.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE_Test_Dll.Form1.resources
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE_Test_Dll.Properties.Resources.resources
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.GenerateResource.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.CoreCompileInputs.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe.config
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.exe
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\bin\Debug\HE-Test_Dll.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\bin\Debug\testUserControl1.dll
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\bin\Debug\testUserControl1.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.csproj.CopyComplete
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.exe
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\HE-Test_Dll\obj\Debug\HE-Test_Dll.pdb

Binary file not shown.

Binary file not shown.

Binary file not shown.

31
Test_UserControl.sln Normal file
View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.6.33815.320
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_UserControl", "Test_UserControl\Test_UserControl.csproj", "{96B351D1-E8D2-4346-8525-3BDCBD562BF4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HE-Test_Dll", "HE-Test_Dll\HE-Test_Dll.csproj", "{4381B7EE-3EC7-45DF-A719-7C83DA83F610}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{96B351D1-E8D2-4346-8525-3BDCBD562BF4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96B351D1-E8D2-4346-8525-3BDCBD562BF4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96B351D1-E8D2-4346-8525-3BDCBD562BF4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96B351D1-E8D2-4346-8525-3BDCBD562BF4}.Release|Any CPU.Build.0 = Release|Any CPU
{4381B7EE-3EC7-45DF-A719-7C83DA83F610}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4381B7EE-3EC7-45DF-A719-7C83DA83F610}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4381B7EE-3EC7-45DF-A719-7C83DA83F610}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4381B7EE-3EC7-45DF-A719-7C83DA83F610}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E1E907C0-4832-44B0-AFF2-61AD21D7E447}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// Allgemeine Informationen über eine Assembly werden über die folgenden
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
// die einer Assembly zugeordnet sind.
[assembly: AssemblyTitle("Test_UserControl1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ENGEL")]
[assembly: AssemblyProduct("Test_UserControl1")]
[assembly: AssemblyCopyright("Copyright © 2023 by Eugen Höglinger")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
[assembly: ComVisible(false)]
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
[assembly: Guid("96b351d1-e8d2-4346-8525-3bdcbd562bf4")]
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
//
// Hauptversion
// Nebenversion
// Buildnummer
// Revision
//
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,83 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Test_UserControl.Properties {
using System;
/// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_UserControl.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Pfeil_oben {
get {
object obj = ResourceManager.GetObject("Pfeil_oben", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Pfeil_unten {
get {
object obj = ResourceManager.GetObject("Pfeil_unten", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Pfeil_unten" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Pfeil_unten.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Pfeil_oben" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Pfeil_oben.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{96B351D1-E8D2-4346-8525-3BDCBD562BF4}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>Test_UserControl</RootNamespace>
<AssemblyName>testUserControl1</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="testUserControl1, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>bin\Debug\testUserControl1.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="UserControl1.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UserControl1.Designer.cs">
<DependentUpon>UserControl1.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Service Include="{94E38DFF-614B-4cbd-B67C-F211BB35CE8B}" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="UserControl1.resx">
<DependentUpon>UserControl1.cs</DependentUpon>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\Pfeil_unten.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Pfeil_oben.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

123
Test_UserControl/UserControl1.Designer.cs generated Normal file
View File

@ -0,0 +1,123 @@
namespace Test_UserControl
{
partial class UserControl1
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
/// </summary>
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Vom Komponenten-Designer generierter Code
/// <summary>
/// Erforderliche Methode für die Designerunterstützung.
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
/// </summary>
private void InitializeComponent()
{
this.buttonDown = new System.Windows.Forms.Button();
this.buttonUp = new System.Windows.Forms.Button();
this.checkBoxEncrypt = new System.Windows.Forms.CheckBox();
this.checkBoxDefault = new System.Windows.Forms.CheckBox();
this.buttonAddSeperator = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// buttonDown
//
this.buttonDown.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonDown.BackgroundImage = global::Test_UserControl.Properties.Resources.Pfeil_unten;
this.buttonDown.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.buttonDown.Location = new System.Drawing.Point(0, 104);
this.buttonDown.Name = "buttonDown";
this.buttonDown.Size = new System.Drawing.Size(90, 23);
this.buttonDown.TabIndex = 2;
this.buttonDown.UseVisualStyleBackColor = true;
this.buttonDown.Click += new System.EventHandler(this.buttonDown_Click);
//
// buttonUp
//
this.buttonUp.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonUp.BackgroundImage = global::Test_UserControl.Properties.Resources.Pfeil_oben;
this.buttonUp.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom;
this.buttonUp.Location = new System.Drawing.Point(0, 0);
this.buttonUp.Name = "buttonUp";
this.buttonUp.Size = new System.Drawing.Size(90, 23);
this.buttonUp.TabIndex = 1;
this.buttonUp.UseVisualStyleBackColor = true;
this.buttonUp.Click += new System.EventHandler(this.buttonUp_Click);
//
// checkBoxEncrypt
//
this.checkBoxEncrypt.AutoSize = true;
this.checkBoxEncrypt.Location = new System.Drawing.Point(0, 58);
this.checkBoxEncrypt.Name = "checkBoxEncrypt";
this.checkBoxEncrypt.Size = new System.Drawing.Size(73, 17);
this.checkBoxEncrypt.TabIndex = 3;
this.checkBoxEncrypt.Text = "Chiffrieren";
this.checkBoxEncrypt.UseVisualStyleBackColor = true;
this.checkBoxEncrypt.CheckedChanged += new System.EventHandler(this.checkBoxEncrypt_CheckedChanged);
//
// checkBoxDefault
//
this.checkBoxDefault.AutoSize = true;
this.checkBoxDefault.Location = new System.Drawing.Point(0, 81);
this.checkBoxDefault.Name = "checkBoxDefault";
this.checkBoxDefault.Size = new System.Drawing.Size(69, 17);
this.checkBoxDefault.TabIndex = 0;
this.checkBoxDefault.Text = "Standard";
this.checkBoxDefault.UseVisualStyleBackColor = true;
this.checkBoxDefault.CheckedChanged += new System.EventHandler(this.checkBoxDefault_CheckedChanged);
//
// buttonAddSeperator
//
this.buttonAddSeperator.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.buttonAddSeperator.Location = new System.Drawing.Point(0, 29);
this.buttonAddSeperator.Name = "buttonAddSeperator";
this.buttonAddSeperator.Size = new System.Drawing.Size(90, 23);
this.buttonAddSeperator.TabIndex = 4;
this.buttonAddSeperator.Text = "Seperator dazu";
this.buttonAddSeperator.UseVisualStyleBackColor = true;
this.buttonAddSeperator.Click += new System.EventHandler(this.buttonAddSeperator_Click);
//
// UserControl1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.buttonAddSeperator);
this.Controls.Add(this.checkBoxEncrypt);
this.Controls.Add(this.buttonDown);
this.Controls.Add(this.checkBoxDefault);
this.Controls.Add(this.buttonUp);
this.MaximumSize = new System.Drawing.Size(120, 170);
this.MinimumSize = new System.Drawing.Size(90, 127);
this.Name = "UserControl1";
this.Size = new System.Drawing.Size(90, 127);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button buttonUp;
private System.Windows.Forms.Button buttonDown;
private System.Windows.Forms.CheckBox checkBoxEncrypt;
private System.Windows.Forms.CheckBox checkBoxDefault;
private System.Windows.Forms.Button buttonAddSeperator;
}
}

View File

@ -0,0 +1,504 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Diagnostics;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
namespace Test_UserControl
{
//Verfügbarkeit
public enum Availability
{
Disabled,
Enabled
}
//Sichtbarkeit
public enum Visibility
{
Invisible,
Visible
}
public partial class UserControl1: UserControl
{
#region Version und Copyright
// Key und Copyright
static string dllName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
static string dllVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
static string copyright = GenerateCopyright();
string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit
static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString();
string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime()
{
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
var buildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(TimeSpan.TicksPerDay * version.Build + TimeSpan.TicksPerSecond * 2 * version.Revision));
//Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
return buildDateTime;
}
private static string CurrentYear()
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
private static string StartYear()
{
string startYear = "";
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
{
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
while (startYear.StartsWith(" "))
{
startYear = startYear.Remove(0, 1);
}
startYear = startYear.Remove(startYear.IndexOf(" "));
return startYear;
}
else
{
DateTime dtn = DateTime.Now;
return dtn.Year.ToString();
}
}
private static string GenerateCopyright()
{
string startYear = StartYear();
string currentYear = CurrentYear();
if (startYear == currentYear)
{
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
}
else
{
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
}
}
#endregion
#region DLL-Info
/// <summary>
/// Contains the name of the dll file.
/// </summary>
public static string DllName { private set; get; }
/// <summary>
/// Contains the version of the dll file.
/// </summary>
public static string DllVersion { private set; get; }
/// <summary>
/// Contains the copyright notice.
/// </summary>
public static string Copyright { private set; get; }
/// <summary>
/// Contains the name-, version- and copyright-information of the dll file.
/// </summary>
public static string[] DllInfo { private set; get; }
private static void SetDllInfo()
{
//Name, Key und Copyright setzen
DllName = dllName;
DllVersion = dllVersion;
Copyright = copyright;
}
#endregion
public event EventHandler ButtonUpClick; //Der Eventhandler
public event EventHandler ButtonDownClick; //Der Eventhandler
public event EventHandler ButtonAddSeparatorClick; //Der Eventhandler
public event EventHandler CheckboxEncryptCheck; //Der Eventhandler
public event EventHandler CheckboxStandardCheck; //Der Eventhandler
/// <summary>
/// Generates a user control
/// </summary>
static UserControl1()
{
SetDllInfo(); //Name, Version und Copyright der DLL setzen
}
public UserControl1()
{
SetDllInfo(); //Name, Version und Copyright der DLL setzen
InitializeComponent();
}
public int ButtonUpAvailability { set; get; }
public int ButtonUpVisibility { set; get; }
public int ButtonDownAvailability { set; get; }
public int ButtonDownVisibility { set; get; }
public int ButtonAddSeparatorAvailability { set; get; }
public int ButtonAddSeparatorVisibility { set; get; }
private int ButtonAddSeparatorPosY { set; get; }
public int CheckBoxEncryptAvailability { set; get; }
public int CheckBoxEncryptVisibility { set; get; }
public bool CheckBoxEncryptStatusSelected { set; get; }
private int CheckBoxEncryptPosY { set; get; }
public int CheckBoxStandardAvailability { set; get; }
public int CheckBoxStandardVisibility { set; get; }
public bool CheckBoxStandardStatusSelected { set; get; }
private int CheckBoxStandardPosY { set; get; }
public int SizeX { set; get; }
public int SizeY { set; get; }
public string PressedButton { get; set; }
public void SetVisibility()
{
//Ungültige Werte korrigieren
CorrectInvalidSizeValues();
//Y-Position der Steuerelemente setzen
SetButtonAddSeparatorPositionY();
SetCheckBoxEncryptPositionY();
SetCheckBoxStandardPositionY();
//Verfügbarkeit der Steuerelemente setzen
SetButtonUpAvailability();
SetButtonAddSeparatorAvailability();
SetCheckBoxEncryptAvailability();
SetCheckBoxStandardAvailability();
SetButtonDownAvailability();
//Sichtbarkeit der Steuerelemente setzen
SetButtonUpVisibility();
SetButtonAddSeparatorVisibility();
SetCheckBoxEncryptVisibility();
SetCheckBoxStandardVisibility();
SetButtonDownVisibility();
//Die Selektion setzen
SetCheckBoxEncryptSetSelection();
SetCheckBoxStandardSetSelection();
//this.Refresh();
}
private void CorrectInvalidSizeValues()
{
if (SizeX < MinimumSize.Width)
{
SizeX = MinimumSize.Width;
}
if (SizeX > MaximumSize.Width)
{
SizeX = MaximumSize.Width;
}
if (SizeY < MinimumSize.Height)
{
SizeX = MinimumSize.Height;
}
if (SizeY > MaximumSize.Height)
{
SizeX = MaximumSize.Height;
}
}
private void SetButtonAddSeparatorPositionY()
{
if (CheckBoxEncryptAvailability == 1 & CheckBoxStandardAvailability == 1)
{
//Wenn beide Checkboxen sichtbar sind
this.buttonAddSeperator.Location = new System.Drawing.Point(0, 29 + DiffY(MinimumSize.Height, SizeY));
}
else if (CheckBoxEncryptAvailability == 0 & CheckBoxStandardAvailability == 0)
{
//Wenn keine Checkbox sichtbar ist
this.buttonAddSeperator.Location = new System.Drawing.Point(0, 58 + DiffY(MinimumSize.Height, SizeY));
}
else
{
//Wenn eine Checkbox sichtbar ist
this.buttonAddSeperator.Location = new System.Drawing.Point(0, 47 + DiffY(MinimumSize.Height, SizeY));
}
}
private void SetCheckBoxEncryptPositionY()
{
if (ButtonAddSeparatorAvailability == 1 & CheckBoxStandardAvailability == 1)
{
//Wenn der Button und eine Checkboxen sichtbar sind
this.checkBoxEncrypt.Location = new System.Drawing.Point(0, 58 + DiffY(MinimumSize.Height, SizeY));
}
else if (ButtonAddSeparatorAvailability == 0 & CheckBoxStandardAvailability == 0)
{
//Wenn kein Button und keine Checkbox sichtbar ist
this.checkBoxEncrypt.Location = new System.Drawing.Point(0, 58 + DiffY(MinimumSize.Height, SizeY));
}
else if (ButtonAddSeparatorAvailability == 1 & CheckBoxStandardAvailability == 0)
{
//Wenn der Button und keine Checkbox sichtbar ist
this.checkBoxEncrypt.Location = new System.Drawing.Point(0, 70 + DiffY(MinimumSize.Height, SizeY));
}
else
{
//Wenn kein Button und eine Checkbox sichtbar ist
this.checkBoxEncrypt.Location = new System.Drawing.Point(0, 47 + DiffY(MinimumSize.Height, SizeY));
}
}
private void SetCheckBoxStandardPositionY()
{
if (ButtonAddSeparatorAvailability == 1 & CheckBoxEncryptAvailability == 1)
{
//Wenn der Button und eine Checkboxen sichtbar sind
this.checkBoxDefault.Location = new System.Drawing.Point(0, 81 + DiffY(MinimumSize.Height, SizeY));
}
else if (ButtonAddSeparatorAvailability == 0 & CheckBoxEncryptAvailability == 0)
{
//Wenn kein Button und keine Checkbox sichtbar ist
this.checkBoxDefault.Location = new System.Drawing.Point(0, 58 + DiffY(MinimumSize.Height, SizeY));
}
else if (ButtonAddSeparatorAvailability == 1 & CheckBoxEncryptAvailability == 0)
{
//Wenn der Button und keine Checkbox sichtbar ist
this.checkBoxDefault.Location = new System.Drawing.Point(0, 70 + DiffY(MinimumSize.Height, SizeY));
}
else
{
//Wenn kein Button und eine Checkbox sichtbar ist
this.checkBoxDefault.Location = new System.Drawing.Point(0, 47 + DiffY(MinimumSize.Height, SizeY));
}
}
private int DiffY(int minY, int currentY)
{
double diff = 0;
diff = Convert.ToDouble(currentY) - Convert.ToDouble(minY);
if (diff <= 0)
{
return 0;
}
return Convert.ToInt32(diff / 2);
}
private void SetButtonUpAvailability()
{
if (ButtonUpAvailability == 1)
{
buttonUp.Enabled = true;
}
else
{
buttonUp.Enabled = false;
}
}
private void SetButtonAddSeparatorAvailability()
{
if (ButtonAddSeparatorAvailability == 1)
{
buttonAddSeperator.Enabled = true;
}
else
{
buttonAddSeperator.Enabled = false;
}
}
private void SetCheckBoxEncryptAvailability()
{
if (CheckBoxEncryptAvailability == 1)
{
checkBoxEncrypt.Enabled = true;
}
else
{
checkBoxEncrypt.Enabled = false;
}
}
private void SetCheckBoxStandardAvailability()
{
if (CheckBoxStandardAvailability == 1)
{
checkBoxDefault.Enabled = true;
}
else
{
checkBoxDefault.Enabled = false;
}
}
private void SetButtonDownAvailability()
{
if (ButtonDownAvailability == 1)
{
buttonDown.Enabled = true;
}
else
{
buttonDown.Enabled = false;
}
}
private void SetButtonUpVisibility()
{
if (ButtonUpVisibility == 1)
{
buttonUp.Visible = true;
}
else
{
buttonUp.Visible = false;
}
}
private void SetButtonAddSeparatorVisibility()
{
if (ButtonAddSeparatorVisibility == 1)
{
buttonAddSeperator.Visible = true;
}
else
{
buttonAddSeperator.Visible = false;
}
}
private void SetCheckBoxEncryptVisibility()
{
if (CheckBoxEncryptVisibility == 1)
{
checkBoxEncrypt.Visible = true;
}
else
{
checkBoxEncrypt.Visible = false;
}
}
private void SetCheckBoxStandardVisibility()
{
if (CheckBoxStandardVisibility == 1)
{
checkBoxDefault.Visible = true;
}
else
{
checkBoxDefault.Visible = false;
}
}
private void SetButtonDownVisibility()
{
if (ButtonDownVisibility == 1)
{
buttonDown.Visible = true;
}
else
{
buttonDown.Visible = false;
}
}
private void SetCheckBoxEncryptSetSelection()
{
if (CheckBoxEncryptStatusSelected == true)
{
checkBoxEncrypt.Checked = true; //CheckBox ist selektiert
}
else
{
checkBoxEncrypt.Checked = false; //CheckBox ist deselektiert
CheckBoxEncryptStatusSelected = false; //Zur Sicherheit auf einen definierten Wert setzen
}
checkBoxEncrypt.Refresh();
}
private void SetCheckBoxStandardSetSelection()
{
if (CheckBoxStandardStatusSelected == true)
{
checkBoxDefault.Checked = true; //CheckBox ist selektiert
}
else
{
checkBoxDefault.Checked = false; //CheckBox ist deselektiert
CheckBoxStandardStatusSelected = false; //Zur Sicherheit auf einen definierten Wert setzen
}
}
private void buttonUp_Click(object sender, EventArgs e)
{
OnButtonUpClick();
}
private void buttonDown_Click(object sender, EventArgs e)
{
OnButtonDownClick();
}
private void buttonAddSeperator_Click(object sender, EventArgs e)
{
OnButtonAddSeparatorClick();
}
private void checkBoxEncrypt_CheckedChanged(object sender, EventArgs e)
{
OnCheckboxEncryptCheck(); //Ereignis ausführen
//Checkbox Status setzen
CheckBoxEncryptStatusSelected = checkBoxEncrypt.Checked;
}
private void checkBoxDefault_CheckedChanged(object sender, EventArgs e)
{
OnCheckboxStandardCheck(); //Ereignis ausführen
//Checkbox Status setzen
CheckBoxStandardStatusSelected = checkBoxDefault.Checked;
}
protected void OnButtonUpClick()
{
//Registrierte Ereignisbehandlungsmethode ausführen
ButtonUpClick?.Invoke(this, EventArgs.Empty);
}
protected void OnButtonDownClick()
{
//Registrierte Ereignisbehandlungsmethode ausführen
ButtonDownClick?.Invoke(this, EventArgs.Empty);
}
protected void OnButtonAddSeparatorClick()
{
//Registrierte Ereignisbehandlungsmethode ausführen
ButtonAddSeparatorClick?.Invoke(this, EventArgs.Empty);
}
protected void OnCheckboxEncryptCheck()
{
//Registrierte Ereignisbehandlungsmethode ausführen
CheckboxEncryptCheck?.Invoke(this, EventArgs.Empty);
}
protected void OnCheckboxStandardCheck()
{
//Registrierte Ereignisbehandlungsmethode ausführen
CheckboxStandardCheck?.Invoke(this, EventArgs.Empty);
}
}
}

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1 @@
cc2ae8afbe7610ef6290c92827e7e8e121791128

View File

@ -0,0 +1,9 @@
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.csproj.AssemblyReference.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.Properties.Resources.resources
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.UserControl1.resources
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.csproj.GenerateResource.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.csproj.CoreCompileInputs.cache
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\bin\Debug\testUserControl1.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\testUserControl1.dll
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\testUserControl1.pdb
C:\CAD\Git-WorkRepository\VisualStudio\_TEST\Test_UserControl.git\Test_UserControl\obj\Debug\Test_UserControl.csproj.CopyComplete

Binary file not shown.

Binary file not shown.