Update 20250618

This commit is contained in:
Stefan Hutter
2025-06-18 23:11:00 +02:00
parent 85ff87dc62
commit f45b683545
173 changed files with 1728 additions and 320 deletions

View File

@@ -40,6 +40,7 @@
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.button2 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// sign1
@@ -171,11 +172,22 @@
this.label5.TabIndex = 29;
this.label5.Text = "Farbe";
//
// button2
//
this.button2.Location = new System.Drawing.Point(208, 327);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 30;
this.button2.Text = "WPF";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1051, 389);
this.Controls.Add(this.button2);
this.Controls.Add(this.label5);
this.Controls.Add(this.label4);
this.Controls.Add(this.button1);
@@ -209,6 +221,7 @@
private System.Windows.Forms.SaveFileDialog saveFileDialog1;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Button button2;
}
}

View File

@@ -101,5 +101,12 @@ namespace zz_winsign
{
sign1.ClearSignature();
}
private void button2_Click(object sender, EventArgs e)
{
Form2 f = new Form2();
f.Show();
}
}
}

61
zz_winsign/Form2.Designer.cs generated Normal file
View File

@@ -0,0 +1,61 @@
namespace zz_winsign
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.elementHost1 = new System.Windows.Forms.Integration.ElementHost();
this.signControl1 = new zz_winsign.SignControl();
this.SuspendLayout();
//
// elementHost1
//
this.elementHost1.Location = new System.Drawing.Point(12, 25);
this.elementHost1.Name = "elementHost1";
this.elementHost1.Size = new System.Drawing.Size(776, 413);
this.elementHost1.TabIndex = 0;
this.elementHost1.Text = "elementHost1";
this.elementHost1.Child = this.signControl1;
//
// Form2
//
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.elementHost1);
this.Name = "Form2";
this.Text = "Form2";
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Integration.ElementHost elementHost1;
private SignControl signControl1;
}
}

20
zz_winsign/Form2.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace zz_winsign
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}
}
}

120
zz_winsign/Form2.resx Normal file
View File

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

View File

@@ -0,0 +1,33 @@
<UserControl x:Class="zz_winsign.SignControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid Background="Gray" Margin="0,0,0,0">
<InkCanvas Name="inkCanvas" Background="White" Margin="0,0,0,0" HorizontalAlignment="Left" Width="616" Height="228" VerticalAlignment="Top"/>
<TextBlock Name="outputBlock" Margin="4,326,0,0" Foreground="Black" Background="DarkGray" HorizontalAlignment="Left" Width="613" RenderTransformOrigin="0.5,0.5" Height="25" VerticalAlignment="Top">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform AngleY="-0.058"/>
<RotateTransform/>
<TranslateTransform Y="-0.299"/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<Button Content="Speichern" HorizontalAlignment="Left" Margin="10,284,0,0" Width="81" Click="Button_Click" Height="26" VerticalAlignment="Top"/>
<Button Content="Bild löschen" HorizontalAlignment="Left" Margin="10,243,0,0" Width="81" Click="DelButton_Click" Height="26" VerticalAlignment="Top"/>
<TextBox Height="350" Margin="637,0,0,0" TextWrapping="Wrap" Text="Unterschrift mit Stift (HP Stylus) auf dem Laptopbildschirm erfassen. Nur wenn das Citrix-Fenster exklusiv auf dem Laptop-bildschirm positioniert ist, wird der Stift und die Druckstärke erfasst.&#xA;&#xA;Bitte möglichst den gesamten Platz des Eingabefelds benutzen, Starten von links.&#xA;&#xA;Prokuristen setzen den Zusatz &quot;pp&quot; und Handlungsbevollmächtigte &quot;i.V.&quot; vor die Unterschrift." Background="DarkGray" VerticalAlignment="Top" HorizontalAlignment="Left" Width="239"/>
<Label Content="." HorizontalAlignment="Left" Height="36" Margin="113,252,0,0" VerticalAlignment="Top" Width="38" FontSize="18
"/>
<Label Content="." HorizontalAlignment="Left" Height="43" Margin="171,243,0,0" VerticalAlignment="Top" Width="38" FontSize="26"/>
<Slider x:Name="OnOffSlider"
Minimum="0"
Maximum="1"
Value="1"
TickFrequency="1"
IsSnapToTickEnabled="True"
TickPlacement="BottomRight"
ValueChanged="OnOffSlider_ValueChanged" Margin="115,243,0,0" HorizontalAlignment="Left" Width="69" Height="26" VerticalAlignment="Top"/>
<Label Content="Stiftgrösse" HorizontalAlignment="Left" Height="26" Margin="192,239,0,0" VerticalAlignment="Top" Width="77"/>
</Grid>
</UserControl>

View File

@@ -0,0 +1,178 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.Net.Http;
using System.Net.Http.Headers;
namespace zz_winsign
{
/// <summary>
/// Interaktionslogik für SignControl.xaml
/// </summary>
public class imageclass
{
public string tgnummer { get; set; }
public string b64 { get; set; }
}
public partial class SignControl : UserControl
{
public string filepath { get; set; } = "";
public string environment { get; set; }="";
public string IgnoreI { get; set; } = "";
public string RestURI { get; set; } = "";
public SignControl()
{
InitializeComponent();
inkCanvas.DefaultDrawingAttributes.FitToCurve = true;
inkCanvas.DefaultDrawingAttributes.IgnorePressure = false;
inkCanvas.DefaultDrawingAttributes.Width = 3;
inkCanvas.DefaultDrawingAttributes.Height = 3;
inkCanvas.DefaultDrawingAttributes.Color = Colors.Navy;
inkCanvas.StylusDown += InkCanvas_StylusDown;
inkCanvas.StylusMove += InkCanvas_StylusMove;
//suppress mouse and touch input (only pen)
inkCanvas.PreviewMouseDown += (s, e) => {
e.Handled = true;
outputBlock.Text = "Nur Stift-Input möglich!";
outputBlock.Foreground = Brushes.White;
};
inkCanvas.PreviewMouseUp += (s, e) => {
e.Handled = true;
outputBlock.Text = "Nur Stift-Input möglich!";
outputBlock.Foreground = Brushes.Black;
};
inkCanvas.PreviewTouchDown += (s, e) => {
e.Handled = true;
outputBlock.Text = "Nur Stift-Input möglich!";
outputBlock.Foreground = Brushes.White;
};
inkCanvas.PreviewTouchUp += (s, e) => {
e.Handled = true;
outputBlock.Text = "Nur Stift-Input möglich!";
outputBlock.Foreground = Brushes.Black;
};
}
private void InkCanvas_StylusDown(object sender, StylusDownEventArgs e)
{
ShowStylusPoints(e.GetStylusPoints(inkCanvas));
}
private void InkCanvas_StylusMove(object sender, StylusEventArgs e)
{
ShowStylusPoints(e.GetStylusPoints(inkCanvas));
}
private void ShowStylusPoints(StylusPointCollection points)
{
var sb = new StringBuilder();
foreach (StylusPoint pt in points)
{
sb.AppendLine($"X: {pt.X:0}, Y: {pt.Y:0}, Pressure: {pt.PressureFactor:0.00}");
}
outputBlock.Text = sb.ToString();
}
private void SaveInkCanvasAsJpg(InkCanvas inkCanvas, string filename)
{
// 1. Größe bestimmen
Size size = new Size(inkCanvas.ActualWidth, inkCanvas.ActualHeight);
inkCanvas.Measure(size);
inkCanvas.Arrange(new Rect(size));
// 2. RenderTargetBitmap erstellen
RenderTargetBitmap renderBitmap = new RenderTargetBitmap(
(int)size.Width,
(int)size.Height,
96d, // DPI-Wert
96d, // DPI-Wert
PixelFormats.Default);
renderBitmap.Render(inkCanvas);
// 3. Encoder erstellen und Frame hinzufügen
JpegBitmapEncoder encoder = new JpegBitmapEncoder();
encoder.QualityLevel = 95;
encoder.Frames.Add(BitmapFrame.Create(renderBitmap));
// 4. In Datei speichern
using (FileStream file = File.Create(filename))
{
encoder.Save(file);
}
}
private string get_tg(string tguser)
{
if (IgnoreI.ToString().ToLower() == "true")
{
tguser = tguser.Replace("I", "");
tguser = tguser.Replace("i", "");
}
return tguser;
}
private void Button_Click(object sender, RoutedEventArgs e)
{
string SaveImageFolder = filepath;
string SaveImageFilename = SaveImageFolder + "signatureimage.jpg";
SaveInkCanvasAsJpg(inkCanvas, SaveImageFilename);
byte[] imageArray = System.IO.File.ReadAllBytes(SaveImageFilename);
string base64ImageRepresentation = Convert.ToBase64String(imageArray);
string URL = RestURI;
URL = URL + "API/SaveSignature";
string tguser = get_tg(Environment.UserName);
string json = "{\"tgnummer\":\"" + tguser + "\", \"b64\":\"" + base64ImageRepresentation + "\"}";
using (var client = new HttpClient())
{
var token = "";
if (environment == "INT") { token = "ecJVgQbmauycFRw5Lz6hB0dJb6GYCePckr2kw3g+xLkbS+h6oxR0iPMFkP3uXpFq7luWAdXrEWs1kmR4Pan5rN+bgwm2YjdPl56Et/Z5hIr+QJhPMB8lmNO1oJytu3GS"; }
if (environment == "PROD") { token = "U/atwlLxw8w3RRK3iRhIidhhz/MR+dgQaysvuWjLyjjy9G3edGldU1zUEATZMZ5v1wPvA5ArDqAGH4xsqoyEP+w6k5Ij0Rh47ifP/8iN0jE418ECp9TbOX8Vrg6JyGFkfLjIAk+uQQC18dg4wGnOwKEJJlKrGCYeVVwwsOBtsoM="; }
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = client.PostAsync(URL, content);
outputBlock.Text = response.Result.StatusCode.ToString();
}
System.IO.File.Delete(SaveImageFilename);
}
private void DelButton_Click(object sender, RoutedEventArgs e)
{
inkCanvas.Strokes.Clear();
}
private void OnOffSlider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
{
if (OnOffSlider.Value == 0)
{
inkCanvas.DefaultDrawingAttributes.Width = 2;
inkCanvas.DefaultDrawingAttributes.Height = 2;
}
else
{
inkCanvas.DefaultDrawingAttributes.Width = 3;
inkCanvas.DefaultDrawingAttributes.Height = 3;
}
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,133 @@
#pragma checksum "..\..\SignControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "89E25FF1AF780CFF921409A04C381A4D86C5C9043661B3A9C29DFAC5301E9AF8"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace zz_winsign {
/// <summary>
/// SignControl
/// </summary>
public partial class SignControl : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 6 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.InkCanvas inkCanvas;
#line default
#line hidden
#line 7 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock outputBlock;
#line default
#line hidden
#line 23 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Slider OnOffSlider;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/zz_winsign;component/signcontrol.xaml", System.UriKind.Relative);
#line 1 "..\..\SignControl.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
return;
case 2:
this.outputBlock = ((System.Windows.Controls.TextBlock)(target));
return;
case 3:
#line 17 "..\..\SignControl.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
#line hidden
return;
case 4:
#line 18 "..\..\SignControl.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DelButton_Click);
#line default
#line hidden
return;
case 5:
this.OnOffSlider = ((System.Windows.Controls.Slider)(target));
#line 30 "..\..\SignControl.xaml"
this.OnOffSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.OnOffSlider_ValueChanged);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

View File

@@ -0,0 +1,133 @@
#pragma checksum "..\..\SignControl.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "89E25FF1AF780CFF921409A04C381A4D86C5C9043661B3A9C29DFAC5301E9AF8"
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Forms.Integration;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
namespace zz_winsign {
/// <summary>
/// SignControl
/// </summary>
public partial class SignControl : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector {
#line 6 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.InkCanvas inkCanvas;
#line default
#line hidden
#line 7 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock outputBlock;
#line default
#line hidden
#line 23 "..\..\SignControl.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.Slider OnOffSlider;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/zz_winsign;component/signcontrol.xaml", System.UriKind.Relative);
#line 1 "..\..\SignControl.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "4.0.0.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.inkCanvas = ((System.Windows.Controls.InkCanvas)(target));
return;
case 2:
this.outputBlock = ((System.Windows.Controls.TextBlock)(target));
return;
case 3:
#line 17 "..\..\SignControl.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);
#line default
#line hidden
return;
case 4:
#line 18 "..\..\SignControl.xaml"
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.DelButton_Click);
#line default
#line hidden
return;
case 5:
this.OnOffSlider = ((System.Windows.Controls.Slider)(target));
#line 30 "..\..\SignControl.xaml"
this.OnOffSlider.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.OnOffSlider_ValueChanged);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}

Binary file not shown.

View File

@@ -1 +1 @@
158c15cba1093ff307ba5a3b127c3a2b24d28a9b3c8e6969da52a43ba33429a6
fc2d52eb2cb6744d3c4e59149f4bef6b46d7dbdb7afe1714c669ccdab019c769

View File

@@ -13,3 +13,8 @@ E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.csproj.CoreComp
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.csproj.Up2Date
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.exe
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.pdb
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\SignControl.baml
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\SignControl.g.cs
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign_MarkupCompile.cache
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.g.resources
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\zz_winsign.Form2.resources

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,20 @@
zz_winsign
winexe
C#
.cs
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\
zz_winsign
none
false
DEBUG;TRACE
1-1384809760
10-454204766
23-1330428683
SignControl.xaml;
False

View File

@@ -0,0 +1,20 @@
zz_winsign
winexe
C#
.cs
E:\Software-Projekte\OnDoc\OnDoc\zz_winsign\obj\Debug\
zz_winsign
none
false
DEBUG;TRACE
1-1384809760
10-454204766
23-1330428683
SignControl.xaml;
False

View File

@@ -33,12 +33,15 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="Syncfusion.Shared.Base, Version=28.1462.33.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing.Design" />
<Reference Include="System.Runtime.Serialization.Formatters.Soap" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
@@ -48,6 +51,9 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="UIAutomationProvider" />
<Reference Include="WindowsBase" />
<Reference Include="WindowsFormsIntegration" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
@@ -56,11 +62,23 @@
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Form2.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SignControl.xaml.cs">
<DependentUpon>SignControl.xaml</DependentUpon>
</Compile>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
@@ -89,5 +107,11 @@
<Name>WinSign</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Page Include="SignControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>