From 290c16d329d32b96a06a737b652bc0b89da61fef Mon Sep 17 00:00:00 2001 From: Hoeglinger Eugen Date: Fri, 3 Jun 2022 10:41:11 +0200 Subject: [PATCH] =?UTF-8?q?=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Auf .NET 4.8 aktualisiert - Pfade in der Testroutine angepasst --- StartStopExtProgram/Language.Designer.cs | 216 ++++++------- .../StartStopExtProgram.csproj | 139 ++++----- Test_StartStopExtProgram/App.config | 12 +- Test_StartStopExtProgram/Form1.cs | 292 +++++++++--------- .../Properties/Resources.Designer.cs | 134 ++++---- .../Properties/Settings.Designer.cs | 56 ++-- .../Test_StartStopExtProgram.csproj | 184 +++++------ 7 files changed, 512 insertions(+), 521 deletions(-) diff --git a/StartStopExtProgram/Language.Designer.cs b/StartStopExtProgram/Language.Designer.cs index 54ec609..a711013 100644 --- a/StartStopExtProgram/Language.Designer.cs +++ b/StartStopExtProgram/Language.Designer.cs @@ -1,108 +1,108 @@ -//------------------------------------------------------------------------------ -// -// 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 { - 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", "15.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Language { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Language() { - } - - /// - /// 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.Language", typeof(Language).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 Das angegebene Programm wurde nicht gefunden! ähnelt. - /// - internal static string message001 { - get { - return ResourceManager.GetString("message001", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmname wurde nicht gefunden! ähnelt. - /// - internal static string message002 { - get { - return ResourceManager.GetString("message002", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmpfad wurde nicht gefunden! ähnelt. - /// - internal static string message003 { - get { - return ResourceManager.GetString("message003", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Der Prozessname konnte nicht generiert werden! ähnelt. - /// - internal static string message004 { - get { - return ResourceManager.GetString("message004", resourceCulture); - } - } - - /// - /// Sucht eine lokalisierte Zeichenfolge, die Programm konnte nicht gestartet werden! ähnelt. - /// - internal static string message005 { - get { - return ResourceManager.GetString("message005", resourceCulture); - } - } - } -} +//------------------------------------------------------------------------------ +// +// 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 { + 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 Language { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Language() { + } + + /// + /// 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.Language", typeof(Language).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 Das angegebene Programm wurde nicht gefunden! ähnelt. + /// + internal static string message001 { + get { + return ResourceManager.GetString("message001", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmname wurde nicht gefunden! ähnelt. + /// + internal static string message002 { + get { + return ResourceManager.GetString("message002", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmpfad wurde nicht gefunden! ähnelt. + /// + internal static string message003 { + get { + return ResourceManager.GetString("message003", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Der Prozessname konnte nicht generiert werden! ähnelt. + /// + internal static string message004 { + get { + return ResourceManager.GetString("message004", resourceCulture); + } + } + + /// + /// Sucht eine lokalisierte Zeichenfolge, die Programm konnte nicht gestartet werden! ähnelt. + /// + internal static string message005 { + get { + return ResourceManager.GetString("message005", resourceCulture); + } + } + } +} diff --git a/StartStopExtProgram/StartStopExtProgram.csproj b/StartStopExtProgram/StartStopExtProgram.csproj index a5c2824..12df45e 100644 --- a/StartStopExtProgram/StartStopExtProgram.csproj +++ b/StartStopExtProgram/StartStopExtProgram.csproj @@ -1,70 +1,71 @@ - - - - - Debug - AnyCPU - {D9FA7EAE-2785-4856-BD44-1320C7E3BD39} - Library - Properties - Eugen.ESystem - hessexpro - v4.6.1 - 512 - false - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - True - True - Language.resx - - - True - True - Language.de.resx - - - - - - - - ResXFileCodeGenerator - Language.Designer.cs - - - ResXFileCodeGenerator - Language.de.Designer.cs - - - + + + + + Debug + AnyCPU + {D9FA7EAE-2785-4856-BD44-1320C7E3BD39} + Library + Properties + Eugen.ESystem + hessexpro + v4.8 + 512 + false + + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + True + True + Language.resx + + + True + True + Language.de.resx + + + + + + + + ResXFileCodeGenerator + Language.Designer.cs + + + ResXFileCodeGenerator + Language.de.Designer.cs + + + \ No newline at end of file diff --git a/Test_StartStopExtProgram/App.config b/Test_StartStopExtProgram/App.config index 731f6de..5ffd8f8 100644 --- a/Test_StartStopExtProgram/App.config +++ b/Test_StartStopExtProgram/App.config @@ -1,6 +1,6 @@ - - - - - - \ No newline at end of file + + + + + + diff --git a/Test_StartStopExtProgram/Form1.cs b/Test_StartStopExtProgram/Form1.cs index d3e56d7..9364ac1 100644 --- a/Test_StartStopExtProgram/Form1.cs +++ b/Test_StartStopExtProgram/Form1.cs @@ -1,146 +1,146 @@ -using Eugen.ESystem; -using System; -using System.IO; -using System.Reflection; -using System.Windows.Forms; - -namespace Test_StartStopExtProgram -{ - 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 = 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(); //Name, Version und Copyright setzen - InitializeComponent(); - } - - private void Form1_Load(object sender, EventArgs e) - { - ShowInformation(); //Programm- und DLL-Information anzeigen - } - - private void ShowInformation() - { - labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen - - // DLL-Information anzeigen - labelDLLInfo.Text = String.Concat(StartStopExtProgram.DllName, "\n", StartStopExtProgram.DllVersion, "\n", StartStopExtProgram.Copyright); - } - - private void buttonStartStop_Click(object sender, EventArgs e) - { - //-------------------------------------------------------------- - //--- Diesen Bereich ins eigene Programm einfügen --- Anfang --- - //-------------------------------------------------------------- - string programPath = @"C:\Windows"; //Programmpfad - string programName = "Notepad.exe"; //Programm Name - string arg = @"H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\StartStopExtProgram.git\Daten\Test.txt"; //Argument das übergeben wird - bool winStyleMinimized = false; //Anzeige des Programmfensters. false=Sichtbar, true=Minimiert - - //Nachfolgend die möglichen Aufrufvarianten - try - { - //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName)); - //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), winStyleMinimized); - //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), arg, winStyleMinimized); - var startStop = new StartStopExtProgram(programPath, programName, arg, winStyleMinimized); - } - catch (Exception ex) - { - MessageBox.Show(ex.Message); - } - //-------------------------------------------------------------- - //--- Diesen Bereich ins eigene Programm einfügen --- Ende --- - //-------------------------------------------------------------- - } - } -} +using Eugen.ESystem; +using System; +using System.IO; +using System.Reflection; +using System.Windows.Forms; + +namespace Test_StartStopExtProgram +{ + 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 = 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(); //Name, Version und Copyright setzen + InitializeComponent(); + } + + private void Form1_Load(object sender, EventArgs e) + { + ShowInformation(); //Programm- und DLL-Information anzeigen + } + + private void ShowInformation() + { + labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen + + // DLL-Information anzeigen + labelDLLInfo.Text = String.Concat(StartStopExtProgram.DllName, "\n", StartStopExtProgram.DllVersion, "\n", StartStopExtProgram.Copyright); + } + + private void buttonStartStop_Click(object sender, EventArgs e) + { + //-------------------------------------------------------------- + //--- Diesen Bereich ins eigene Programm einfügen --- Anfang --- + //-------------------------------------------------------------- + string programPath = @"C:\Windows"; //Programmpfad + string programName = "Notepad.exe"; //Programm Name + string arg = @"H:\Programmieren\Git-WorkRepository\VisualStudio\_DLL\StartStopExtProgram.git\Daten\Test.txt"; //Argument das übergeben wird + bool winStyleMinimized = false; //Anzeige des Programmfensters. false=Sichtbar, true=Minimiert + + //Nachfolgend die möglichen Aufrufvarianten + try + { + //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName)); + //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), winStyleMinimized); + //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), arg, winStyleMinimized); + var startStop = new StartStopExtProgram(programPath, programName, arg, winStyleMinimized); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + //-------------------------------------------------------------- + //--- Diesen Bereich ins eigene Programm einfügen --- Ende --- + //-------------------------------------------------------------- + } + } +} diff --git a/Test_StartStopExtProgram/Properties/Resources.Designer.cs b/Test_StartStopExtProgram/Properties/Resources.Designer.cs index d0bcd4b..b2146f7 100644 --- a/Test_StartStopExtProgram/Properties/Resources.Designer.cs +++ b/Test_StartStopExtProgram/Properties/Resources.Designer.cs @@ -1,71 +1,63 @@ -//------------------------------------------------------------------------------ -// -// Dieser Code wurde von einem Tool generiert. -// Laufzeitversion: 4.0.30319.42000 -// -// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn -// der Code neu generiert wird. -// -//------------------------------------------------------------------------------ - -namespace Test_StartStopExtProgram.Properties -{ - - - /// - /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. - /// - // Diese Klasse wurde von der StronglyTypedResourceBuilder-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 Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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 ((resourceMan == null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Test_StartStopExtProgram.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - /// Ressourcenlookups, 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; - } - } - } -} +//------------------------------------------------------------------------------ +// +// 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_StartStopExtProgram.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_StartStopExtProgram.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_StartStopExtProgram/Properties/Settings.Designer.cs b/Test_StartStopExtProgram/Properties/Settings.Designer.cs index 0b35572..d875f55 100644 --- a/Test_StartStopExtProgram/Properties/Settings.Designer.cs +++ b/Test_StartStopExtProgram/Properties/Settings.Designer.cs @@ -1,30 +1,26 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Test_StartStopExtProgram.Properties -{ - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.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; - } - } - } -} +//------------------------------------------------------------------------------ +// +// 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_StartStopExtProgram.Properties { + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.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_StartStopExtProgram/Test_StartStopExtProgram.csproj b/Test_StartStopExtProgram/Test_StartStopExtProgram.csproj index fdcbfd3..7023a29 100644 --- a/Test_StartStopExtProgram/Test_StartStopExtProgram.csproj +++ b/Test_StartStopExtProgram/Test_StartStopExtProgram.csproj @@ -1,92 +1,94 @@ - - - - - Debug - AnyCPU - {A8D979D5-120D-4649-9E74-FA646A3E57D2} - WinExe - Test_StartStopExtProgram - Test_StartStopExtProgram - v4.6.1 - 512 - true - false - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\StartStopExtProgram\bin\Debug\hessexpro.dll - - - - - - - - - - - - - - - - Form - - - Form1.cs - - - - - Form1.cs - - - Form1.cs - - - Form1.cs - - - ResXFileCodeGenerator - Resources.Designer.cs - Designer - - - True - Resources.resx - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - True - Settings.settings - True - - - - - - + + + + + Debug + AnyCPU + {A8D979D5-120D-4649-9E74-FA646A3E57D2} + WinExe + Test_StartStopExtProgram + Test_StartStopExtProgram + v4.8 + 512 + true + false + + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\StartStopExtProgram\bin\Debug\hessexpro.dll + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + 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