commit 63a46abc1925abc6faf29b7091d24d8b621061f6 Author: Eugen Höglinger Date: Wed Mar 29 17:45:40 2023 +0200 Initialize - Programm mit dem Menüeinträge zur Laufzeit erzeugt werden können diff --git a/.vs/DynamicMenuItems.git/FileContentIndex/313a3bba-102f-4e06-9e04-b033fc34c40d.vsidx b/.vs/DynamicMenuItems.git/FileContentIndex/313a3bba-102f-4e06-9e04-b033fc34c40d.vsidx new file mode 100644 index 0000000..ee91d6b Binary files /dev/null and b/.vs/DynamicMenuItems.git/FileContentIndex/313a3bba-102f-4e06-9e04-b033fc34c40d.vsidx differ diff --git a/.vs/DynamicMenuItems.git/FileContentIndex/4f6e243e-e290-4521-93eb-bee85b679bec.vsidx b/.vs/DynamicMenuItems.git/FileContentIndex/4f6e243e-e290-4521-93eb-bee85b679bec.vsidx new file mode 100644 index 0000000..1a2f81a Binary files /dev/null and b/.vs/DynamicMenuItems.git/FileContentIndex/4f6e243e-e290-4521-93eb-bee85b679bec.vsidx differ diff --git a/.vs/DynamicMenuItems.git/FileContentIndex/531e03c6-f655-4e2f-bea2-e96b7d389d26.vsidx b/.vs/DynamicMenuItems.git/FileContentIndex/531e03c6-f655-4e2f-bea2-e96b7d389d26.vsidx new file mode 100644 index 0000000..d45e62b Binary files /dev/null and b/.vs/DynamicMenuItems.git/FileContentIndex/531e03c6-f655-4e2f-bea2-e96b7d389d26.vsidx differ diff --git a/.vs/DynamicMenuItems.git/FileContentIndex/d57215a9-558d-4259-8ff3-812d6e1b1bf6.vsidx b/.vs/DynamicMenuItems.git/FileContentIndex/d57215a9-558d-4259-8ff3-812d6e1b1bf6.vsidx new file mode 100644 index 0000000..187bcf5 Binary files /dev/null and b/.vs/DynamicMenuItems.git/FileContentIndex/d57215a9-558d-4259-8ff3-812d6e1b1bf6.vsidx differ diff --git a/.vs/DynamicMenuItems.git/FileContentIndex/read.lock b/.vs/DynamicMenuItems.git/FileContentIndex/read.lock new file mode 100644 index 0000000..e69de29 diff --git a/.vs/DynamicMenuItems.git/v17/.suo b/.vs/DynamicMenuItems.git/v17/.suo new file mode 100644 index 0000000..ab8236f Binary files /dev/null and b/.vs/DynamicMenuItems.git/v17/.suo differ diff --git a/Daten/LicenseBundles.xml b/Daten/LicenseBundles.xml new file mode 100644 index 0000000..8c2f7a7 --- /dev/null +++ b/Daten/LicenseBundles.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/DynamicMenuItems.git.sln b/DynamicMenuItems.git.sln new file mode 100644 index 0000000..a4f411d --- /dev/null +++ b/DynamicMenuItems.git.sln @@ -0,0 +1,31 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.5.33516.290 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DynamicMenuItems", "DynamicMenuItems\DynamicMenuItems.csproj", "{842446DA-7C9E-43E1-BAA9-C0011365A5F4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Test_DynamicMenuItems", "Test_DynamicMenuItems\Test_DynamicMenuItems.csproj", "{E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {842446DA-7C9E-43E1-BAA9-C0011365A5F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {842446DA-7C9E-43E1-BAA9-C0011365A5F4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {842446DA-7C9E-43E1-BAA9-C0011365A5F4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {842446DA-7C9E-43E1-BAA9-C0011365A5F4}.Release|Any CPU.Build.0 = Release|Any CPU + {E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D9EBDFD4-16E2-48E8-8A27-BF807782AEA8} + EndGlobalSection +EndGlobal diff --git a/DynamicMenuItems/DynamicMenuItems.cs b/DynamicMenuItems/DynamicMenuItems.cs new file mode 100644 index 0000000..6fa5478 --- /dev/null +++ b/DynamicMenuItems/DynamicMenuItems.cs @@ -0,0 +1,336 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Xml.Linq; +using Eugen.ESystem.IO; +using static System.Windows.Forms.VisualStyles.VisualStyleElement; +using static Eugen.ESystem.IO.LoadXMLFile; +using AppRes = Eugen.ESystem.Properties.AppResources; + +namespace Eugen.ESystem +{ + public class DynamicMenuItems + { + #region Version und Copyright + // Version 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(); + + //Assembly Datum und Zeit + static DateTime value = AssemblyDateTime(); + static string date = value.ToShortDateString(); + static 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); + } + + if (startYear.Contains("-")) + { + startYear = startYear.Remove(startYear.IndexOf("-")); + } + else + { + 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 + { + string temp = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; + string start = temp.Remove(temp.IndexOf(startYear) - 1); + string end = (temp.Remove(0, temp.IndexOf(" by"))); + + return String.Concat(start, " ", startYear, "-", currentYear, end); + } + } + #endregion + + #region DLL-Info + /// + /// Contains the name of the dll file. + /// + public static string DllName { private set; get; } + + /// + /// Contains the version of the dll file. + /// + public static string DllVersion { private set; get; } + + /// + /// Contains the copyright notice. + /// + public static string Copyright { private set; get; } + + /// + /// Contains the name-, version- and copyright-information of the dll file. + /// + public static string[] DllInfo { private set; get; } + + private static void SetDllInfo() + { + //Name, Version und Copyright setzen + DllName = dllName; + DllVersion = dllVersion; + Copyright = copyright; + + string[] dllInfo = new string[3]; + dllInfo[0] = dllName; + dllInfo[1] = dllVersion; + dllInfo[2] = copyright; + DllInfo = dllInfo; + } + + protected string ProgramName { private set; get; } + protected string ProgramVersion { private set; get; } + protected string ProgramCopyright { private set; get; } + #endregion + + static DynamicMenuItems() + { + SetDllInfo(); + } + + public DynamicMenuItems() + { + SetDllInfo(); + } + + public static string LogFile { get; set; } + public string Password { get; set; } + public string XmlFile { get; set; } + public string Topic { get; set; } + public string Group { get; set; } + public string Key { get; set; } + public string[,] Values { get; set; } + public string[] MenuItems { get; set; } + public string Standard { get; set; } + public ToolStripMenuItem Menu { get; set; } + + //private string SelectedItem { get; set; } + + //Logfile global setzen + LogWriter log = new LogWriter(Path.GetDirectoryName(LogFile), Path.GetFileName(LogFile)); + + public void AddMenuItem(string menuItem) + { + ToolStripMenuItem menu = (ToolStripMenuItem)(Menu); + Menu.DropDownItems.Add(menuItem, null, new EventHandler(ToolStripMenuItem_Click)); + if (File.Exists(LogFile)) + { + log.WriteMessage("License bundle menu entry \'" + menuItem + "\' generated", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + } + + public void AddMenuItemsFromXML() + { + if (File.Exists(LogFile)) + { + log.WriteMessage("Creating dynamic license bundles menu entries ...", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + + LoadXmlFile(XmlFile, Topic, Group, Key); //Information aus der XML-Datei auslesen + ExtractMenuItem(); //Die Menueinträge aus den XML-Daten ermitteln + ExtractStandardItem(); //Das Standard Item ermitteln + + AddMenuItems(MenuItems); //Lizenz Bundles + CheckMenuItem(Standard); + + if (File.Exists(LogFile)) + { + log.WriteMessage("Dynamic license bundles menu entries created successfully", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + } + + public void AddMenuItems(string[] menuList) + { + //Menueinträge erzeugen + if (File.Exists(LogFile)) + { + log.WriteMessage("Generating menu entries ...", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + + //Zuerst alle angelegten Menüeinträge löschen + RemoveAllMenuItems(); + + //Für jedes Element in der Liste einen Menüpunkt anlegen + foreach (var element in menuList) + { + AddMenuItem(element); + } + + if (File.Exists(LogFile)) + { + log.WriteMessage("All menu entries are generated successfully", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + } + + public void CheckMenuItem(string selectedItem) + { + //Hier soll der Menüeintrag, der dem Übergebenen Wert entspricht, auf 'Checked = true' gesetzt werden + foreach (ToolStripMenuItem item in Menu.DropDownItems) + { + if (item.Text == selectedItem) + { + item.Checked = true; + if (File.Exists(LogFile)) + { + log.WriteMessage("The menu item \'" + item.Text + "\' was selected", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + } + else + { + item.Checked = false; + } + } + } + + public void RemoveMenuItem(string item) + { + ToolStripMenuItem menu = (ToolStripMenuItem)(Menu); + + foreach (ToolStripMenuItem xitem in menu.DropDownItems) + { + if (xitem.ToString() == item) + { + menu.DropDownItems.Remove(xitem); //Den Menüeinträge löschen + + if (File.Exists(LogFile)) + { + log.WriteMessage("Remove menu entrie" + item, LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + return; + } + } + } + + public void RemoveMenuItems(string[] itemList) + { + foreach (string item in itemList) + { + RemoveMenuItem(item); + } + } + + public void RemoveAllMenuItems() + { + ToolStripMenuItem menu = (ToolStripMenuItem)(Menu); + + menu.DropDownItems.Clear(); //Alle angelegten Menüeinträge löschen + + if (File.Exists(LogFile)) + { + log.WriteMessage("Removed all menu entries", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + } + + private void ToolStripMenuItem_Click(object sender, EventArgs e) + { + ToolStripMenuItem MenuItem = (ToolStripMenuItem)sender; + + //SelectedItem = MenuItem.Text; + Standard = MenuItem.Text; + + CheckMenuItem(MenuItem.Text); + + //TODO: License Bundle ins Roaming schreiben + } + + private void LoadXmlFile(string xmlFileName, string topic, string group, string key) + { + if (File.Exists(LogFile)) + { + log.WriteMessage("Load menu items from XML-file", LogWriter.LogLevel.Information, LogWriter.Time.Write); //Logdatei schreiben + } + + var loadXmlFile = new LoadXMLFile(); + //LoadXML.Password = password; + loadXmlFile.FileName = xmlFileName; + loadXmlFile.Topic = topic; + loadXmlFile.Group = group; + loadXmlFile.Key = key; + loadXmlFile.LoadAllValues = LoadAll.Yes; + + //XML laden + if (File.Exists(xmlFileName)) + { + loadXmlFile.Load(); + + Values = loadXmlFile.Values; + } + else + { + //Datei nicht gefunden + MessageBox.Show(AppRes.msg001, AppRes.capt001, MessageBoxButtons.OK); + } + } + + private void ExtractMenuItem() + { + string[] menuItems = new string[Values.Length / 5]; + + for (int i = 0; i < Values.Length / 5; i++) + { + menuItems[i] = Values[i, 3].ToString(); + } + + MenuItems = menuItems; + } + + private void ExtractStandardItem() + { + for (int i = 0; i < Values.Length / 5; i++) + { + if (Values[i, 4].ToString() == "yes") + { + Standard = Values[i, 3].ToString(); + } + } + } + } +} diff --git a/DynamicMenuItems/DynamicMenuItems.csproj b/DynamicMenuItems/DynamicMenuItems.csproj new file mode 100644 index 0000000..260ec33 --- /dev/null +++ b/DynamicMenuItems/DynamicMenuItems.csproj @@ -0,0 +1,73 @@ + + + + + Debug + AnyCPU + {842446DA-7C9E-43E1-BAA9-C0011365A5F4} + Library + Properties + Eugen.ESystem + hedynmeit + v4.8 + 512 + false + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\LogWriter.git\LogWriter\bin\Debug\helogwri.dll + + + ..\..\LoadXMLFile.git\LoadXMLFile\bin\Debug\heloxmlf.dll + + + ..\..\ShowTextFile.git\ShowTextFile\bin\Debug\heshowtf.dll + + + + + + + + + + + + + + + + True + True + AppResources.resx + + + + + + + + ResXFileCodeGenerator + AppResources.Designer.cs + + + + \ No newline at end of file diff --git a/DynamicMenuItems/Properties/AppResources.Designer.cs b/DynamicMenuItems/Properties/AppResources.Designer.cs new file mode 100644 index 0000000..636f8b2 --- /dev/null +++ b/DynamicMenuItems/Properties/AppResources.Designer.cs @@ -0,0 +1,81 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +namespace Eugen.ESystem.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // 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 AppResources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal AppResources() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [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("Eugen.ESystem.Properties.AppResources", typeof(AppResources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Error ähnelt. + /// + internal static string capt001 { + get { + return ResourceManager.GetString("capt001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Configuration file could not be found. ähnelt. + /// + internal static string msg001 { + get { + return ResourceManager.GetString("msg001", resourceCulture); + } + } + } +} diff --git a/DynamicMenuItems/Properties/AppResources.de.resx b/DynamicMenuItems/Properties/AppResources.de.resx new file mode 100644 index 0000000..e12641c --- /dev/null +++ b/DynamicMenuItems/Properties/AppResources.de.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Fehler + + + Konfigurationsdatei konnte nicht gefunden werden. + + \ No newline at end of file diff --git a/DynamicMenuItems/Properties/AppResources.en.resx b/DynamicMenuItems/Properties/AppResources.en.resx new file mode 100644 index 0000000..b7a6be1 --- /dev/null +++ b/DynamicMenuItems/Properties/AppResources.en.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Error + + + Configuration file could not be found. + + \ No newline at end of file diff --git a/DynamicMenuItems/Properties/AppResources.resx b/DynamicMenuItems/Properties/AppResources.resx new file mode 100644 index 0000000..b7a6be1 --- /dev/null +++ b/DynamicMenuItems/Properties/AppResources.resx @@ -0,0 +1,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Error + + + Configuration file could not be found. + + \ No newline at end of file diff --git a/DynamicMenuItems/Properties/AssemblyInfo.cs b/DynamicMenuItems/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..db60d28 --- /dev/null +++ b/DynamicMenuItems/Properties/AssemblyInfo.cs @@ -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("DynamicMenuItems")] +[assembly: AssemblyDescription("Generates menu items at runtime")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DynamicMenuItems")] +[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("842446da-7c9e-43e1-baa9-c0011365a5f4")] + +// 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.*")] +//[assembly: AssemblyFileVersion("1.0.0.0")] //Wenn auskommentiert, dann gleich wie AssemblyVersion! diff --git a/DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll b/DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll new file mode 100644 index 0000000..bb37806 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll differ diff --git a/DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll b/DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll new file mode 100644 index 0000000..9636d01 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll differ diff --git a/DynamicMenuItems/bin/Debug/hedynmeit.dll b/DynamicMenuItems/bin/Debug/hedynmeit.dll new file mode 100644 index 0000000..81dcdf1 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/hedynmeit.dll differ diff --git a/DynamicMenuItems/bin/Debug/hedynmeit.pdb b/DynamicMenuItems/bin/Debug/hedynmeit.pdb new file mode 100644 index 0000000..9024fb1 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/hedynmeit.pdb differ diff --git a/DynamicMenuItems/bin/Debug/helogwri.dll b/DynamicMenuItems/bin/Debug/helogwri.dll new file mode 100644 index 0000000..ce3c29f Binary files /dev/null and b/DynamicMenuItems/bin/Debug/helogwri.dll differ diff --git a/DynamicMenuItems/bin/Debug/helogwri.pdb b/DynamicMenuItems/bin/Debug/helogwri.pdb new file mode 100644 index 0000000..9e7794e Binary files /dev/null and b/DynamicMenuItems/bin/Debug/helogwri.pdb differ diff --git a/DynamicMenuItems/bin/Debug/heloxmlf.dll b/DynamicMenuItems/bin/Debug/heloxmlf.dll new file mode 100644 index 0000000..f396a2f Binary files /dev/null and b/DynamicMenuItems/bin/Debug/heloxmlf.dll differ diff --git a/DynamicMenuItems/bin/Debug/heloxmlf.dll.config b/DynamicMenuItems/bin/Debug/heloxmlf.dll.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/DynamicMenuItems/bin/Debug/heloxmlf.dll.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/DynamicMenuItems/bin/Debug/heloxmlf.pdb b/DynamicMenuItems/bin/Debug/heloxmlf.pdb new file mode 100644 index 0000000..634fc29 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/heloxmlf.pdb differ diff --git a/DynamicMenuItems/bin/Debug/heshowtf.dll b/DynamicMenuItems/bin/Debug/heshowtf.dll new file mode 100644 index 0000000..3b21263 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/heshowtf.dll differ diff --git a/DynamicMenuItems/bin/Debug/heshowtf.pdb b/DynamicMenuItems/bin/Debug/heshowtf.pdb new file mode 100644 index 0000000..4aa1bc7 Binary files /dev/null and b/DynamicMenuItems/bin/Debug/heshowtf.pdb differ diff --git a/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..eb810d9 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..1dffac6 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.AssemblyReference.cache b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.AssemblyReference.cache new file mode 100644 index 0000000..94c160f Binary files /dev/null and b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.AssemblyReference.cache differ diff --git a/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.CopyComplete b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.CoreCompileInputs.cache b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..ab341fe --- /dev/null +++ b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +d2bb09221837221f875fcd4652cd9c1d74fd34d1 diff --git a/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.FileListAbsolute.txt b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..3811261 --- /dev/null +++ b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.FileListAbsolute.txt @@ -0,0 +1,22 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\DynamicMenuItems.csproj.AssemblyReference.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\Eugen.ESystem.Properties.AppResources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\Eugen.ESystem.Properties.AppResources.de.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\Eugen.ESystem.Properties.AppResources.en.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\DynamicMenuItems.csproj.GenerateResource.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\DynamicMenuItems.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\hedynmeit.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\hedynmeit.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\de\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\en\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\helogwri.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\heloxmlf.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\heshowtf.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\helogwri.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\heloxmlf.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\heloxmlf.dll.config +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\bin\Debug\heshowtf.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\de\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\en\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\DynamicMenuItems.csproj.CopyComplete +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\hedynmeit.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\DynamicMenuItems\obj\Debug\hedynmeit.pdb diff --git a/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.GenerateResource.cache b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.GenerateResource.cache new file mode 100644 index 0000000..feb3539 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/DynamicMenuItems.csproj.GenerateResource.cache differ diff --git a/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.de.resources b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.de.resources new file mode 100644 index 0000000..a5abf47 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.de.resources differ diff --git a/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.en.resources b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.en.resources new file mode 100644 index 0000000..b9ba1e5 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.en.resources differ diff --git a/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.resources b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.resources new file mode 100644 index 0000000..b9ba1e5 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/Eugen.ESystem.Properties.AppResources.resources differ diff --git a/DynamicMenuItems/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll b/DynamicMenuItems/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll new file mode 100644 index 0000000..b4ae9b1 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/TempPE/Properties.AppResources.Designer.cs.dll differ diff --git a/DynamicMenuItems/obj/Debug/de/hedynmeit.resources.dll b/DynamicMenuItems/obj/Debug/de/hedynmeit.resources.dll new file mode 100644 index 0000000..bb37806 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/de/hedynmeit.resources.dll differ diff --git a/DynamicMenuItems/obj/Debug/en/hedynmeit.resources.dll b/DynamicMenuItems/obj/Debug/en/hedynmeit.resources.dll new file mode 100644 index 0000000..9636d01 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/en/hedynmeit.resources.dll differ diff --git a/DynamicMenuItems/obj/Debug/hedynmeit.dll b/DynamicMenuItems/obj/Debug/hedynmeit.dll new file mode 100644 index 0000000..81dcdf1 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/hedynmeit.dll differ diff --git a/DynamicMenuItems/obj/Debug/hedynmeit.pdb b/DynamicMenuItems/obj/Debug/hedynmeit.pdb new file mode 100644 index 0000000..9024fb1 Binary files /dev/null and b/DynamicMenuItems/obj/Debug/hedynmeit.pdb differ diff --git a/Test_DynamicMenuItems/App.config b/Test_DynamicMenuItems/App.config new file mode 100644 index 0000000..4bfa005 --- /dev/null +++ b/Test_DynamicMenuItems/App.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Test_DynamicMenuItems/Form1.Designer.cs b/Test_DynamicMenuItems/Form1.Designer.cs new file mode 100644 index 0000000..acc6e37 --- /dev/null +++ b/Test_DynamicMenuItems/Form1.Designer.cs @@ -0,0 +1,219 @@ +namespace Test_DynamicMenuItems +{ + partial class Form1 + { + /// + /// Erforderliche Designervariable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Verwendete Ressourcen bereinigen. + /// + /// True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Vom Windows Form-Designer generierter Code + + /// + /// Erforderliche Methode für die Designerunterstützung. + /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. + /// + private void InitializeComponent() + { + this.buttonAddMenuItemsFromXML = 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.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.testToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.subtestToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.buttonAddmenuItems = new System.Windows.Forms.Button(); + this.buttonAddMenuItem = new System.Windows.Forms.Button(); + this.buttonRemoveItem = new System.Windows.Forms.Button(); + this.buttonRemoveItems = new System.Windows.Forms.Button(); + this.buttonRemoveAllMenuItems = new System.Windows.Forms.Button(); + this.groupBoxProgramInfo.SuspendLayout(); + this.groupBoxDLLInfo.SuspendLayout(); + this.menuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // buttonAddMenuItemsFromXML + // + this.buttonAddMenuItemsFromXML.Location = new System.Drawing.Point(12, 287); + this.buttonAddMenuItemsFromXML.Name = "buttonAddMenuItemsFromXML"; + this.buttonAddMenuItemsFromXML.Size = new System.Drawing.Size(385, 23); + this.buttonAddMenuItemsFromXML.TabIndex = 0; + this.buttonAddMenuItemsFromXML.Text = "Add menu items from a XML file"; + this.buttonAddMenuItemsFromXML.UseVisualStyleBackColor = true; + this.buttonAddMenuItemsFromXML.Click += new System.EventHandler(this.buttonAddMenuItemsFromXML_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 = "..."; + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.testToolStripMenuItem}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(800, 24); + this.menuStrip1.TabIndex = 13; + this.menuStrip1.Text = "menuStrip1"; + // + // testToolStripMenuItem + // + this.testToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.subtestToolStripMenuItem}); + this.testToolStripMenuItem.Name = "testToolStripMenuItem"; + this.testToolStripMenuItem.Size = new System.Drawing.Size(39, 20); + this.testToolStripMenuItem.Text = "Test"; + // + // subtestToolStripMenuItem + // + this.subtestToolStripMenuItem.Name = "subtestToolStripMenuItem"; + this.subtestToolStripMenuItem.Size = new System.Drawing.Size(113, 22); + this.subtestToolStripMenuItem.Text = "Subtest"; + // + // buttonAddmenuItems + // + this.buttonAddmenuItems.Location = new System.Drawing.Point(12, 258); + this.buttonAddmenuItems.Name = "buttonAddmenuItems"; + this.buttonAddmenuItems.Size = new System.Drawing.Size(385, 23); + this.buttonAddmenuItems.TabIndex = 14; + this.buttonAddmenuItems.Text = "Add menu items from a list"; + this.buttonAddmenuItems.UseVisualStyleBackColor = true; + this.buttonAddmenuItems.Click += new System.EventHandler(this.buttonAddmenuItems_Click); + // + // buttonAddMenuItem + // + this.buttonAddMenuItem.Location = new System.Drawing.Point(12, 229); + this.buttonAddMenuItem.Name = "buttonAddMenuItem"; + this.buttonAddMenuItem.Size = new System.Drawing.Size(385, 23); + this.buttonAddMenuItem.TabIndex = 15; + this.buttonAddMenuItem.Text = "Add a single menu item"; + this.buttonAddMenuItem.UseVisualStyleBackColor = true; + this.buttonAddMenuItem.Click += new System.EventHandler(this.buttonAddMenuItem_Click); + // + // buttonRemoveItem + // + this.buttonRemoveItem.Location = new System.Drawing.Point(403, 228); + this.buttonRemoveItem.Name = "buttonRemoveItem"; + this.buttonRemoveItem.Size = new System.Drawing.Size(385, 23); + this.buttonRemoveItem.TabIndex = 16; + this.buttonRemoveItem.Text = "Remove a single menu item"; + this.buttonRemoveItem.UseVisualStyleBackColor = true; + this.buttonRemoveItem.Click += new System.EventHandler(this.buttonRemoveItem_Click); + // + // buttonRemoveItems + // + this.buttonRemoveItems.Location = new System.Drawing.Point(404, 257); + this.buttonRemoveItems.Name = "buttonRemoveItems"; + this.buttonRemoveItems.Size = new System.Drawing.Size(384, 23); + this.buttonRemoveItems.TabIndex = 17; + this.buttonRemoveItems.Text = "Remove menu items from a list"; + this.buttonRemoveItems.UseVisualStyleBackColor = true; + this.buttonRemoveItems.Click += new System.EventHandler(this.buttonRemoveItems_Click); + // + // buttonRemoveAllMenuItems + // + this.buttonRemoveAllMenuItems.Location = new System.Drawing.Point(404, 286); + this.buttonRemoveAllMenuItems.Name = "buttonRemoveAllMenuItems"; + this.buttonRemoveAllMenuItems.Size = new System.Drawing.Size(384, 23); + this.buttonRemoveAllMenuItems.TabIndex = 18; + this.buttonRemoveAllMenuItems.Text = "Remove all menu items"; + this.buttonRemoveAllMenuItems.UseVisualStyleBackColor = true; + this.buttonRemoveAllMenuItems.Click += new System.EventHandler(this.buttonRemoveAllMenuItems_Click); + // + // 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.buttonRemoveAllMenuItems); + this.Controls.Add(this.buttonRemoveItems); + this.Controls.Add(this.buttonRemoveItem); + this.Controls.Add(this.buttonAddMenuItem); + this.Controls.Add(this.buttonAddmenuItems); + this.Controls.Add(this.groupBoxProgramInfo); + this.Controls.Add(this.groupBoxDLLInfo); + this.Controls.Add(this.buttonAddMenuItemsFromXML); + this.Controls.Add(this.menuStrip1); + this.MainMenuStrip = this.menuStrip1; + 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.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Button buttonAddMenuItemsFromXML; + 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 System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.ToolStripMenuItem testToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem subtestToolStripMenuItem; + private System.Windows.Forms.Button buttonAddmenuItems; + private System.Windows.Forms.Button buttonAddMenuItem; + private System.Windows.Forms.Button buttonRemoveItem; + private System.Windows.Forms.Button buttonRemoveItems; + private System.Windows.Forms.Button buttonRemoveAllMenuItems; + } +} + diff --git a/Test_DynamicMenuItems/Form1.cs b/Test_DynamicMenuItems/Form1.cs new file mode 100644 index 0000000..bcd6e67 --- /dev/null +++ b/Test_DynamicMenuItems/Form1.cs @@ -0,0 +1,202 @@ +using Eugen.ESystem; +using Microsoft.Win32; +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.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Test_DynamicMenuItems +{ + 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 + /// + /// Contains the name of the program file + /// + public static string ProgramName { set; get; } + + /// + /// Contains the version of the program file + /// + public static string ProgramVersion { set; get; } + + /// + /// Contains the copyright notice + /// + 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(); + } + + private void Form1_Load(object sender, EventArgs e) + { + labelProgramInfo.Text = String.Concat(ProgramName, "\r\n", ProgramVersion, "\r\n", Copyright); // Zeigt die Programm-Information an + + labelDLLInfo.Text = String.Concat(DynamicMenuItems.DllName, "\r\n", DynamicMenuItems.DllVersion, "\r\n", DynamicMenuItems.Copyright); // Zeigt die DLL-Information an + } + + private void buttonAddMenuItem_Click(object sender, EventArgs e) + { + DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + var dmi = new DynamicMenuItems(); + + dmi.Password = "abc"; + dmi.XmlFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\LicenseBundles.xml"; + dmi.Topic = "NX-Portal"; + dmi.Group = "Bundle"; + dmi.Key = "License"; + dmi.Menu = subtestToolStripMenuItem; + + dmi.AddMenuItem("NX91110"); //Einen Menüeintrag erzeugen + } + + private void buttonAddmenuItems_Click(object sender, EventArgs e) + { + DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + var dmi = new DynamicMenuItems(); + + dmi.Password = "abc"; + dmi.XmlFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\LicenseBundles.xml"; + dmi.Topic = "NX-Portal"; + dmi.Group = "Bundle"; + dmi.Key = "License"; + dmi.Menu = subtestToolStripMenuItem; + + string[] items = { "NX91110", "NX93300", "SC13500" }; + dmi.AddMenuItems(items); //Menüeinträge aus einer List erzeugen + } + + private void buttonAddMenuItemsFromXML_Click(object sender, EventArgs e) + { + DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + var dmi = new DynamicMenuItems(); + + dmi.Password = "abc"; + dmi.XmlFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\LicenseBundles.xml"; + dmi.Topic = "NX-Portal"; + dmi.Group = "Bundle"; + dmi.Key = "License"; + dmi.Menu = subtestToolStripMenuItem; + + dmi.AddMenuItemsFromXML(); //Alle Menüeinträge aus einer XML-Datei erzeugen + } + + private void buttonRemoveItem_Click(object sender, EventArgs e) + { + //DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + DynamicMenuItems dmi = new DynamicMenuItems(); + dmi.Menu = subtestToolStripMenuItem; + + dmi.RemoveMenuItem("NX91110"); //Einen Menüeintrag löschen + } + + private void buttonRemoveItems_Click(object sender, EventArgs e) + { + DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + var dmi = new DynamicMenuItems(); + dmi.Menu = subtestToolStripMenuItem; + + string[] items = { "NX91110", "NX93300", "SC13500" }; + + dmi.RemoveMenuItems(items); //Eine Liste von Menüeinträgen löschen + } + + private void buttonRemoveAllMenuItems_Click(object sender, EventArgs e) + { + DynamicMenuItems.LogFile = "H:\\Programmieren\\Git-WorkRepository\\VisualStudio\\_DLL\\DynamicMenuItems.git\\Daten\\Log.log"; + + var dmi = new DynamicMenuItems(); + dmi.Menu = subtestToolStripMenuItem; + + dmi.RemoveAllMenuItems(); //Alle Menüeinträge löschen + } + } +} diff --git a/Test_DynamicMenuItems/Form1.resx b/Test_DynamicMenuItems/Form1.resx new file mode 100644 index 0000000..d5494e3 --- /dev/null +++ b/Test_DynamicMenuItems/Form1.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + \ No newline at end of file diff --git a/Test_DynamicMenuItems/Program.cs b/Test_DynamicMenuItems/Program.cs new file mode 100644 index 0000000..69c0b5c --- /dev/null +++ b/Test_DynamicMenuItems/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Test_DynamicMenuItems +{ + internal static class Program + { + /// + /// Der Haupteinstiegspunkt für die Anwendung. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/Test_DynamicMenuItems/Properties/AssemblyInfo.cs b/Test_DynamicMenuItems/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..5940240 --- /dev/null +++ b/Test_DynamicMenuItems/Properties/AssemblyInfo.cs @@ -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_DynamicMenuItems")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Test_DynamicMenuItems")] +[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("e59adf75-279a-46be-ae8c-67f4fdfcf3bf")] + +// 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")] diff --git a/Test_DynamicMenuItems/Properties/Resources.Designer.cs b/Test_DynamicMenuItems/Properties/Resources.Designer.cs new file mode 100644 index 0000000..d1bf232 --- /dev/null +++ b/Test_DynamicMenuItems/Properties/Resources.Designer.cs @@ -0,0 +1,63 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +namespace Test_DynamicMenuItems.Properties { + using System; + + + /// + /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. + /// + // 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() { + } + + /// + /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. + /// + [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_DynamicMenuItems.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle + /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + } +} diff --git a/Test_DynamicMenuItems/Properties/Resources.resx b/Test_DynamicMenuItems/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/Test_DynamicMenuItems/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/Test_DynamicMenuItems/Properties/Settings.Designer.cs b/Test_DynamicMenuItems/Properties/Settings.Designer.cs new file mode 100644 index 0000000..158a75a --- /dev/null +++ b/Test_DynamicMenuItems/Properties/Settings.Designer.cs @@ -0,0 +1,26 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +namespace Test_DynamicMenuItems.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.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; + } + } + } +} diff --git a/Test_DynamicMenuItems/Properties/Settings.settings b/Test_DynamicMenuItems/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/Test_DynamicMenuItems/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Test_DynamicMenuItems/Test_DynamicMenuItems.csproj b/Test_DynamicMenuItems/Test_DynamicMenuItems.csproj new file mode 100644 index 0000000..d83607d --- /dev/null +++ b/Test_DynamicMenuItems/Test_DynamicMenuItems.csproj @@ -0,0 +1,88 @@ + + + + + Debug + AnyCPU + {E59ADF75-279A-46BE-AE8C-67F4FDFCF3BF} + WinExe + Test_DynamicMenuItems + Test_DynamicMenuItems + v4.8 + 512 + true + false + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\DynamicMenuItems\bin\Debug\hedynmeit.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + True + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe new file mode 100644 index 0000000..f7df3e0 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe differ diff --git a/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe.config b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe.config new file mode 100644 index 0000000..4bfa005 --- /dev/null +++ b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.exe.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.pdb b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.pdb new file mode 100644 index 0000000..09e2675 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/Test_DynamicMenuItems.pdb differ diff --git a/Test_DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll b/Test_DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll new file mode 100644 index 0000000..bb37806 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/de/hedynmeit.resources.dll differ diff --git a/Test_DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll b/Test_DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll new file mode 100644 index 0000000..9636d01 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/en/hedynmeit.resources.dll differ diff --git a/Test_DynamicMenuItems/bin/Debug/hedynmeit.dll b/Test_DynamicMenuItems/bin/Debug/hedynmeit.dll new file mode 100644 index 0000000..81dcdf1 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/hedynmeit.dll differ diff --git a/Test_DynamicMenuItems/bin/Debug/hedynmeit.pdb b/Test_DynamicMenuItems/bin/Debug/hedynmeit.pdb new file mode 100644 index 0000000..9024fb1 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/hedynmeit.pdb differ diff --git a/Test_DynamicMenuItems/bin/Debug/helogwri.dll b/Test_DynamicMenuItems/bin/Debug/helogwri.dll new file mode 100644 index 0000000..ce3c29f Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/helogwri.dll differ diff --git a/Test_DynamicMenuItems/bin/Debug/helogwri.pdb b/Test_DynamicMenuItems/bin/Debug/helogwri.pdb new file mode 100644 index 0000000..9e7794e Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/helogwri.pdb differ diff --git a/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll b/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll new file mode 100644 index 0000000..f396a2f Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll differ diff --git a/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll.config b/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/Test_DynamicMenuItems/bin/Debug/heloxmlf.dll.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Test_DynamicMenuItems/bin/Debug/heloxmlf.pdb b/Test_DynamicMenuItems/bin/Debug/heloxmlf.pdb new file mode 100644 index 0000000..634fc29 Binary files /dev/null and b/Test_DynamicMenuItems/bin/Debug/heloxmlf.pdb differ diff --git a/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs b/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs new file mode 100644 index 0000000..3871b18 --- /dev/null +++ b/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] diff --git a/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs b/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs new file mode 100644 index 0000000..15efebf --- /dev/null +++ b/Test_DynamicMenuItems/obj/Debug/.NETFramework,Version=v4.8.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] diff --git a/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..6012500 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache new file mode 100644 index 0000000..00522a8 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Test_DynamicMenuItems/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll b/Test_DynamicMenuItems/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll new file mode 100644 index 0000000..5379fbb Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Form1.resources b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Form1.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Form1.resources differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Properties.Resources.resources b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.Properties.Resources.resources differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.AssemblyReference.cache b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.AssemblyReference.cache new file mode 100644 index 0000000..b47d469 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.AssemblyReference.cache differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.CopyComplete b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.CoreCompileInputs.cache b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..e2f2bcc --- /dev/null +++ b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +9ce7caedfe88add715da5b5d30e1dfa8b953e367 diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.FileListAbsolute.txt b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..c488fc8 --- /dev/null +++ b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.FileListAbsolute.txt @@ -0,0 +1,21 @@ +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.AssemblyReference.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.SuggestedBindingRedirects.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.Form1.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.Properties.Resources.resources +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.GenerateResource.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.CoreCompileInputs.cache +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\Test_DynamicMenuItems.exe.config +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\Test_DynamicMenuItems.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\Test_DynamicMenuItems.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\helogwri.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\heloxmlf.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\hedynmeit.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\helogwri.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\heloxmlf.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\heloxmlf.dll.config +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\de\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\en\hedynmeit.resources.dll +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.csproj.CopyComplete +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.exe +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\obj\Debug\Test_DynamicMenuItems.pdb +H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\DynamicMenuItems.git\Test_DynamicMenuItems\bin\Debug\hedynmeit.dll diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.GenerateResource.cache b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.GenerateResource.cache new file mode 100644 index 0000000..c78afc1 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.GenerateResource.cache differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.SuggestedBindingRedirects.cache b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.csproj.SuggestedBindingRedirects.cache new file mode 100644 index 0000000..e69de29 diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.exe b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.exe new file mode 100644 index 0000000..f7df3e0 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.exe differ diff --git a/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.pdb b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.pdb new file mode 100644 index 0000000..09e2675 Binary files /dev/null and b/Test_DynamicMenuItems/obj/Debug/Test_DynamicMenuItems.pdb differ