Änderung

- Auf .NET 4.8 aktualisiert
- Pfade in der Testroutine angepasst
This commit is contained in:
Hoeglinger Eugen 2022-06-03 10:41:11 +02:00
parent 6841c5e5e8
commit 290c16d329
7 changed files with 512 additions and 521 deletions

View File

@ -1,108 +1,108 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Dieser Code wurde von einem Tool generiert. // Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000 // Laufzeitversion:4.0.30319.42000
// //
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird. // der Code erneut generiert wird.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Eugen.ESystem { namespace Eugen.ESystem {
using System; using System;
/// <summary> /// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. /// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
/// </summary> /// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert // Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
// -Klasse über ein Tool wie ResGen oder Visual Studio 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 // 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. // 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.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Language { internal class Language {
private static global::System.Resources.ResourceManager resourceMan; private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture; private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Language() { internal Language() {
} }
/// <summary> /// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. /// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
get { get {
if (object.ReferenceEquals(resourceMan, null)) { if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Language", typeof(Language).Assembly); global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Eugen.ESystem.Language", typeof(Language).Assembly);
resourceMan = temp; resourceMan = temp;
} }
return resourceMan; return resourceMan;
} }
} }
/// <summary> /// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle /// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. /// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {
get { get {
return resourceCulture; return resourceCulture;
} }
set { set {
resourceCulture = value; resourceCulture = value;
} }
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Das angegebene Programm wurde nicht gefunden! ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Das angegebene Programm wurde nicht gefunden! ähnelt.
/// </summary> /// </summary>
internal static string message001 { internal static string message001 {
get { get {
return ResourceManager.GetString("message001", resourceCulture); return ResourceManager.GetString("message001", resourceCulture);
} }
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmname wurde nicht gefunden! ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmname wurde nicht gefunden! ähnelt.
/// </summary> /// </summary>
internal static string message002 { internal static string message002 {
get { get {
return ResourceManager.GetString("message002", resourceCulture); return ResourceManager.GetString("message002", resourceCulture);
} }
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmpfad wurde nicht gefunden! ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Der angegebene Programmpfad wurde nicht gefunden! ähnelt.
/// </summary> /// </summary>
internal static string message003 { internal static string message003 {
get { get {
return ResourceManager.GetString("message003", resourceCulture); return ResourceManager.GetString("message003", resourceCulture);
} }
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Der Prozessname konnte nicht generiert werden! ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Der Prozessname konnte nicht generiert werden! ähnelt.
/// </summary> /// </summary>
internal static string message004 { internal static string message004 {
get { get {
return ResourceManager.GetString("message004", resourceCulture); return ResourceManager.GetString("message004", resourceCulture);
} }
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Programm konnte nicht gestartet werden! ähnelt. /// Sucht eine lokalisierte Zeichenfolge, die Programm konnte nicht gestartet werden! ähnelt.
/// </summary> /// </summary>
internal static string message005 { internal static string message005 {
get { get {
return ResourceManager.GetString("message005", resourceCulture); return ResourceManager.GetString("message005", resourceCulture);
} }
} }
} }
} }

View File

@ -1,70 +1,71 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{D9FA7EAE-2785-4856-BD44-1320C7E3BD39}</ProjectGuid> <ProjectGuid>{D9FA7EAE-2785-4856-BD44-1320C7E3BD39}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Eugen.ESystem</RootNamespace> <RootNamespace>Eugen.ESystem</RootNamespace>
<AssemblyName>hessexpro</AssemblyName> <AssemblyName>hessexpro</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> <TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<Deterministic>false</Deterministic> <Deterministic>false</Deterministic>
</PropertyGroup> <TargetFrameworkProfile />
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> </PropertyGroup>
<DebugSymbols>true</DebugSymbols> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugType>full</DebugType> <DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize> <DebugType>full</DebugType>
<OutputPath>bin\Debug\</OutputPath> <Optimize>false</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants> <OutputPath>bin\Debug\</OutputPath>
<ErrorReport>prompt</ErrorReport> <DefineConstants>DEBUG;TRACE</DefineConstants>
<WarningLevel>4</WarningLevel> <ErrorReport>prompt</ErrorReport>
</PropertyGroup> <WarningLevel>4</WarningLevel>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> </PropertyGroup>
<DebugType>pdbonly</DebugType> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize> <DebugType>pdbonly</DebugType>
<OutputPath>bin\Release\</OutputPath> <Optimize>true</Optimize>
<DefineConstants>TRACE</DefineConstants> <OutputPath>bin\Release\</OutputPath>
<ErrorReport>prompt</ErrorReport> <DefineConstants>TRACE</DefineConstants>
<WarningLevel>4</WarningLevel> <ErrorReport>prompt</ErrorReport>
</PropertyGroup> <WarningLevel>4</WarningLevel>
<ItemGroup> </PropertyGroup>
<Reference Include="System" /> <ItemGroup>
<Reference Include="System.Core" /> <Reference Include="System" />
<Reference Include="System.Windows.Forms" /> <Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Windows.Forms" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Xml.Linq" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" /> <Reference Include="Microsoft.CSharp" />
<Reference Include="System.Net.Http" /> <Reference Include="System.Data" />
<Reference Include="System.Xml" /> <Reference Include="System.Net.Http" />
</ItemGroup> <Reference Include="System.Xml" />
<ItemGroup> </ItemGroup>
<Compile Include="Language.Designer.cs"> <ItemGroup>
<AutoGen>True</AutoGen> <Compile Include="Language.Designer.cs">
<DesignTime>True</DesignTime> <AutoGen>True</AutoGen>
<DependentUpon>Language.resx</DependentUpon> <DesignTime>True</DesignTime>
</Compile> <DependentUpon>Language.resx</DependentUpon>
<Compile Include="Language.de.Designer.cs"> </Compile>
<AutoGen>True</AutoGen> <Compile Include="Language.de.Designer.cs">
<DesignTime>True</DesignTime> <AutoGen>True</AutoGen>
<DependentUpon>Language.de.resx</DependentUpon> <DesignTime>True</DesignTime>
</Compile> <DependentUpon>Language.de.resx</DependentUpon>
<Compile Include="StartStopExtProgram.cs" /> </Compile>
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="StartStopExtProgram.cs" />
</ItemGroup> <Compile Include="Properties\AssemblyInfo.cs" />
<ItemGroup> </ItemGroup>
<EmbeddedResource Include="Language.en.resx" /> <ItemGroup>
<EmbeddedResource Include="Language.resx"> <EmbeddedResource Include="Language.en.resx" />
<Generator>ResXFileCodeGenerator</Generator> <EmbeddedResource Include="Language.resx">
<LastGenOutput>Language.Designer.cs</LastGenOutput> <Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource> <LastGenOutput>Language.Designer.cs</LastGenOutput>
<EmbeddedResource Include="Language.de.resx"> </EmbeddedResource>
<Generator>ResXFileCodeGenerator</Generator> <EmbeddedResource Include="Language.de.resx">
<LastGenOutput>Language.de.Designer.cs</LastGenOutput> <Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource> <LastGenOutput>Language.de.Designer.cs</LastGenOutput>
</ItemGroup> </EmbeddedResource>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

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

View File

@ -1,146 +1,146 @@
using Eugen.ESystem; using Eugen.ESystem;
using System; using System;
using System.IO; using System.IO;
using System.Reflection; using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
namespace Test_StartStopExtProgram namespace Test_StartStopExtProgram
{ {
public partial class Form1 : Form public partial class Form1 : Form
{ {
#region Version und Copyright #region Version und Copyright
// Version und Copyright // Version und Copyright
string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen string programName = Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase); //Den Programmnamen auslesen
string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); string programVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false); static object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
string copyright = GenerateCopyright(); string copyright = GenerateCopyright();
string icon = Application.StartupPath + "\\Info.bmp"; string icon = Application.StartupPath + "\\Info.bmp";
//Assembly Datum und Zeit //Assembly Datum und Zeit
static DateTime value = AssemblyDateTime(); static DateTime value = AssemblyDateTime();
string date = value.ToShortDateString(); string date = value.ToShortDateString();
string time = value.ToLongTimeString(); string time = value.ToLongTimeString();
private static DateTime AssemblyDateTime() private static DateTime AssemblyDateTime()
{ {
var version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; 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)); 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) //Tage seit dem 1. Januar 2000 und Sekunden seit Mitternacht, (multiplizier mit 2 ergibt das Original)
return buildDateTime; return buildDateTime;
} }
private static string CurrentYear() private static string CurrentYear()
{ {
DateTime dtn = DateTime.Now; DateTime dtn = DateTime.Now;
return dtn.Year.ToString(); return dtn.Year.ToString();
} }
private static string StartYear() private static string StartYear()
{ {
//string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright; //string startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
//return startYear.Remove(0, startYear.LastIndexOf(" ") + 1); //return startYear.Remove(0, startYear.LastIndexOf(" ") + 1);
string startYear = ""; string startYear = "";
if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © ")) if (((AssemblyCopyrightAttribute)attributes[0]).Copyright.Contains("Copyright © "))
{ {
startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", ""); startYear = ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace("Copyright © ", "");
while (startYear.StartsWith(" ")) while (startYear.StartsWith(" "))
{ {
startYear = startYear.Remove(0, 1); startYear = startYear.Remove(0, 1);
} }
startYear = startYear.Remove(startYear.IndexOf(" ")); startYear = startYear.Remove(startYear.IndexOf(" "));
return startYear; return startYear;
} }
else else
{ {
DateTime dtn = DateTime.Now; DateTime dtn = DateTime.Now;
return dtn.Year.ToString(); return dtn.Year.ToString();
} }
} }
private static string GenerateCopyright() private static string GenerateCopyright()
{ {
string startYear = StartYear(); string startYear = StartYear();
string currentYear = CurrentYear(); string currentYear = CurrentYear();
if (startYear == currentYear) if (startYear == currentYear)
{ {
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright; return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
} }
else else
{ {
//return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear); //return String.Concat(((AssemblyCopyrightAttribute)attributes[0]).Copyright, "-", currentYear);
return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear)); return ((AssemblyCopyrightAttribute)attributes[0]).Copyright.Replace(startYear, String.Concat(startYear, "-", currentYear));
} }
} }
#endregion #endregion
#region Programm-Info #region Programm-Info
/// <summary> /// <summary>
/// Contains the name of the program file /// Contains the name of the program file
/// </summary> /// </summary>
public static string ProgramName { set; get; } public static string ProgramName { set; get; }
/// <summary> /// <summary>
/// Contains the version of the program file /// Contains the version of the program file
/// </summary> /// </summary>
public static string ProgramVersion { set; get; } public static string ProgramVersion { set; get; }
/// <summary> /// <summary>
/// Contains the copyright notice /// Contains the copyright notice
/// </summary> /// </summary>
public static string Copyright { set; get; } public static string Copyright { set; get; }
private void SetProgramInfo() private void SetProgramInfo()
{ {
//Name, Version und Copyright setzen //Name, Version und Copyright setzen
ProgramName = programName; ProgramName = programName;
ProgramVersion = programVersion; ProgramVersion = programVersion;
Copyright = copyright; Copyright = copyright;
} }
#endregion #endregion
public Form1() public Form1()
{ {
SetProgramInfo(); //Name, Version und Copyright setzen SetProgramInfo(); //Name, Version und Copyright setzen
InitializeComponent(); InitializeComponent();
} }
private void Form1_Load(object sender, EventArgs e) private void Form1_Load(object sender, EventArgs e)
{ {
ShowInformation(); //Programm- und DLL-Information anzeigen ShowInformation(); //Programm- und DLL-Information anzeigen
} }
private void ShowInformation() private void ShowInformation()
{ {
labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen labelProgramInfo.Text = String.Concat(ProgramName, "\n", ProgramVersion, "\n", Copyright); //Programm-Information anzeigen
// DLL-Information anzeigen // DLL-Information anzeigen
labelDLLInfo.Text = String.Concat(StartStopExtProgram.DllName, "\n", StartStopExtProgram.DllVersion, "\n", StartStopExtProgram.Copyright); labelDLLInfo.Text = String.Concat(StartStopExtProgram.DllName, "\n", StartStopExtProgram.DllVersion, "\n", StartStopExtProgram.Copyright);
} }
private void buttonStartStop_Click(object sender, EventArgs e) private void buttonStartStop_Click(object sender, EventArgs e)
{ {
//-------------------------------------------------------------- //--------------------------------------------------------------
//--- Diesen Bereich ins eigene Programm einfügen --- Anfang --- //--- Diesen Bereich ins eigene Programm einfügen --- Anfang ---
//-------------------------------------------------------------- //--------------------------------------------------------------
string programPath = @"C:\Windows"; //Programmpfad string programPath = @"C:\Windows"; //Programmpfad
string programName = "Notepad.exe"; //Programm Name string programName = "Notepad.exe"; //Programm Name
string arg = @"H:\Programmieren\Git-Repository\VisualStudio\2017\_DLL\StartStopExtProgram.git\Daten\Test.txt"; //Argument das übergeben wird 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 bool winStyleMinimized = false; //Anzeige des Programmfensters. false=Sichtbar, true=Minimiert
//Nachfolgend die möglichen Aufrufvarianten //Nachfolgend die möglichen Aufrufvarianten
try try
{ {
//var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName)); //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), winStyleMinimized);
//var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), arg, winStyleMinimized); //var startStop = new StartStopExtProgram(String.Concat(programPath, "\\", programName), arg, winStyleMinimized);
var startStop = new StartStopExtProgram(programPath, programName, arg, winStyleMinimized); var startStop = new StartStopExtProgram(programPath, programName, arg, winStyleMinimized);
} }
catch (Exception ex) catch (Exception ex)
{ {
MessageBox.Show(ex.Message); MessageBox.Show(ex.Message);
} }
//-------------------------------------------------------------- //--------------------------------------------------------------
//--- Diesen Bereich ins eigene Programm einfügen --- Ende --- //--- Diesen Bereich ins eigene Programm einfügen --- Ende ---
//-------------------------------------------------------------- //--------------------------------------------------------------
} }
} }
} }

View File

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

View File

@ -1,30 +1,26 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// This code was generated by a tool. // Dieser Code wurde von einem Tool generiert.
// Runtime Version:4.0.30319.42000 // Laufzeitversion:4.0.30319.42000
// //
// Changes to this file may cause incorrect behavior and will be lost if // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// the code is regenerated. // der Code erneut generiert wird.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace Test_StartStopExtProgram.Properties namespace Test_StartStopExtProgram.Properties {
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default {
get {
public static Settings Default return defaultInstance;
{ }
get }
{ }
return defaultInstance; }
}
}
}
}

View File

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