From bd76000628dbba84c57627f7731945b87e97c80d Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Mon, 16 Nov 2015 00:41:45 +0000 Subject: [PATCH] rest --- testapp.sln | 20 ++++ testapp/Form1.Designer.cs | 65 ++++++++++++ testapp/Form1.cs | 35 +++++++ testapp/Form1.resx | 123 +++++++++++++++++++++++ testapp/Program.cs | 21 ++++ testapp/Properties/AssemblyInfo.cs | 36 +++++++ testapp/Properties/Resources.Designer.cs | 71 +++++++++++++ testapp/Properties/Resources.resx | 117 +++++++++++++++++++++ testapp/Properties/Settings.Designer.cs | 30 ++++++ testapp/Properties/Settings.settings | 7 ++ testapp/testapp.csproj | 87 ++++++++++++++++ testapp/testapp.csproj.user | 7 ++ 12 files changed, 619 insertions(+) create mode 100644 testapp.sln create mode 100644 testapp/Form1.Designer.cs create mode 100644 testapp/Form1.cs create mode 100644 testapp/Form1.resx create mode 100644 testapp/Program.cs create mode 100644 testapp/Properties/AssemblyInfo.cs create mode 100644 testapp/Properties/Resources.Designer.cs create mode 100644 testapp/Properties/Resources.resx create mode 100644 testapp/Properties/Settings.Designer.cs create mode 100644 testapp/Properties/Settings.settings create mode 100644 testapp/testapp.csproj create mode 100644 testapp/testapp.csproj.user diff --git a/testapp.sln b/testapp.sln new file mode 100644 index 0000000..a513cc9 --- /dev/null +++ b/testapp.sln @@ -0,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testapp", "testapp\testapp.csproj", "{6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B}.Debug|x86.ActiveCfg = Debug|x86 + {6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B}.Debug|x86.Build.0 = Debug|x86 + {6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B}.Release|x86.ActiveCfg = Release|x86 + {6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B}.Release|x86.Build.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/testapp/Form1.Designer.cs b/testapp/Form1.Designer.cs new file mode 100644 index 0000000..5f60807 --- /dev/null +++ b/testapp/Form1.Designer.cs @@ -0,0 +1,65 @@ +namespace testapp +{ + 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); + } + + public void löw() + { + } + + #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.components = new System.ComponentModel.Container(); + this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components); + this.SuspendLayout(); + // + // trayIcon + // + this.trayIcon.Text = "trayIcon"; + this.trayIcon.Visible = true; + // this.trayIcon.Icon = this.getTrayIcon(); + //this.trayIcon.ContextMenuStrip = + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(284, 262); + this.Name = "Form1"; + this.ShowInTaskbar = false; + this.Text = "OpenVPN-GUI"; + this.WindowState = System.Windows.Forms.FormWindowState.Minimized; + this.Resize += new System.EventHandler(this.EventHandler_Resize); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.NotifyIcon trayIcon; + } +} + diff --git a/testapp/Form1.cs b/testapp/Form1.cs new file mode 100644 index 0000000..3f331ec --- /dev/null +++ b/testapp/Form1.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace testapp +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + UInt16 a = 0x1234; + byte h = (byte)(a >> 8); + byte l = (byte)a; + Console.WriteLine(h + " " + l); + } + private void EventHandler_Resize(object sender, System.EventArgs e) + { + if (this.WindowState == FormWindowState.Minimized) + { + this.ShowInTaskbar = false; + this.WindowState = FormWindowState.Minimized; + } + } + private System.Drawing.Icon getTrayIcon() + { + throw new System.NotImplementedException(); + } + } +} diff --git a/testapp/Form1.resx b/testapp/Form1.resx new file mode 100644 index 0000000..55df86a --- /dev/null +++ b/testapp/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/testapp/Program.cs b/testapp/Program.cs new file mode 100644 index 0000000..da3e8a2 --- /dev/null +++ b/testapp/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace testapp +{ + 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/testapp/Properties/AssemblyInfo.cs b/testapp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..afe2375 --- /dev/null +++ b/testapp/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 mit einer Assembly verknüpft sind. +[assembly: AssemblyTitle("testapp")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("testapp")] +[assembly: AssemblyCopyright("Copyright © 2011")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar +// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von +// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("4b4de5aa-599b-4408-a9d8-b8a051972d8e")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern +// übernehmen, indem Sie "*" eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/testapp/Properties/Resources.Designer.cs b/testapp/Properties/Resources.Designer.cs new file mode 100644 index 0000000..57e1ef3 --- /dev/null +++ b/testapp/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.1 +// +// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn +// der Code neu generiert wird. +// +//------------------------------------------------------------------------------ + +namespace testapp.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("testapp.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; + } + } + } +} diff --git a/testapp/Properties/Resources.resx b/testapp/Properties/Resources.resx new file mode 100644 index 0000000..ffecec8 --- /dev/null +++ b/testapp/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/testapp/Properties/Settings.Designer.cs b/testapp/Properties/Settings.Designer.cs new file mode 100644 index 0000000..9e4f10b --- /dev/null +++ b/testapp/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.1 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace testapp.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.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; + } + } + } +} diff --git a/testapp/Properties/Settings.settings b/testapp/Properties/Settings.settings new file mode 100644 index 0000000..abf36c5 --- /dev/null +++ b/testapp/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/testapp/testapp.csproj b/testapp/testapp.csproj new file mode 100644 index 0000000..0ef3dfb --- /dev/null +++ b/testapp/testapp.csproj @@ -0,0 +1,87 @@ + + + + Debug + x86 + 8.0.30703 + 2.0 + {6405D43F-7E0E-44A9-B6FB-977BDFEEEA8B} + WinExe + Properties + testapp + testapp + v4.0 + Client + 512 + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + x86 + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + \ No newline at end of file diff --git a/testapp/testapp.csproj.user b/testapp/testapp.csproj.user new file mode 100644 index 0000000..1ce79b0 --- /dev/null +++ b/testapp/testapp.csproj.user @@ -0,0 +1,7 @@ + + + + Program + G:\Programme\GoproStudio\GoPro\Tools\GoPro Studio.exe + + \ No newline at end of file