Skip to content

Commit

Permalink
alle Änderungen aus Entwurf übernommen
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanibal1963 committed Aug 24, 2024
2 parents 2bf0145 + 0e7635d commit 90bdd32
Show file tree
Hide file tree
Showing 156 changed files with 11,634 additions and 1,480 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ MigrationBackup/

# Fody - auto-generated XML schema
FodyWeavers.xsd

# Benutzerdefiniert
/AniGifControl/ClassDiagram.cd
/DriveWatcherControl/ClassDiagram.cd
/IniFileControl/ClassDiagram.cd
Expand Down
120 changes: 120 additions & 0 deletions AniGifControl/AniGif.en-US.resx
Original file line number Diff line number Diff line change
@@ -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>
19 changes: 17 additions & 2 deletions AniGifControl/AniGif.resx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,22 @@
<metadata name="Timer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.TrayLargeIcon" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>False</value>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="$this.Language" type="System.Globalization.CultureInfo, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>en-US</value>
</metadata>
<data name="&gt;&gt;Timer.Name" xml:space="preserve">
<value>Timer</value>
</data>
<data name="&gt;&gt;Timer.Type" xml:space="preserve">
<value>System.Windows.Forms.Timer, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>AniGif</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
</root>
61 changes: 35 additions & 26 deletions AniGifControl/AniGif.vb
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,24 @@ Imports System.Drawing.Imaging
''' Control zum anzeigen von animierten Grafiken.
''' </summary>
<ProvideToolboxControl("SchlumpfSoft Controls", False)>
<Description(AniGif_Description)>
<MyDescription("ClassDescription")>
<ToolboxItem(True)>
<ToolboxBitmap(GetType(AniGif), "AniGif.bmp")>
Public Class AniGif


Inherits Control
Inherits UserControl


#Region "Variablen für Komponenten"


''' <summary>
''' Zeitgeber für Benutzerdefinierte Anzeigegeschwindigkeit
''' </summary>
Private WithEvents Timer As Timer


''' <summary>
''' Container für interne Komponenten.
''' </summary>
Expand All @@ -46,7 +48,7 @@ Public Class AniGif
''' <summary>
''' Eigenschaftsvariable für das aktuelle Bild.
''' </summary>
Private _Gif As System.Drawing.Bitmap
Private _Gif As Bitmap


''' <summary>
Expand All @@ -70,7 +72,7 @@ Public Class AniGif
''' <summary>
''' Variable für die Eigenschaften des Bildes.
''' </summary>
Private _Dimension As System.Drawing.Imaging.FrameDimension
Private _Dimension As FrameDimension


''' <summary>
Expand Down Expand Up @@ -102,19 +104,22 @@ Public Class AniGif

#Region "Ereignisdefinitionen"


''' <summary>
''' Wird ausgelöst wenn die Grafik nicht animiert werden kann.
''' </summary>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(NoAnimation_Description)>
Public Event NoAnimation(sender As Object, e As NoAnimationEventArgs)
<Category("Behavior")>
<MyDescription("NoAnimationDescription")>
Public Event NoAnimation(sender As Object, e As EventArgs)


''' <summary>
''' Wird ausgelöst wenn sich das Bild geändert hat.
''' </summary>
Private Event GifChanged()


''' <summary>
''' Wird ausgelöst wenn sich die Anzeigegeschwindigkeit geändert hat.
''' </summary>
Expand All @@ -130,8 +135,8 @@ Public Class AniGif
''' Legt fest ob die Animation sofort nach dem laden gestartet wird.
''' </summary>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(AutoPlay_Description)>
<Category("Behavior")>
<MyDescription("AutoPlayDescription")>
Public Property AutoPlay() As Boolean
Get
Return Me._Autoplay
Expand All @@ -146,8 +151,8 @@ Public Class AniGif
''' Gibt die animierte Gif-Grafik zurück oder legt diese fest.
''' </summary>
<Browsable(True)>
<Category(Category_Appearance)>
<Description(Gif_Description)>
<Category("Appearance")>
<MyDescription("GifDescription")>
Public Property Gif() As Bitmap
Get
Return Me._Gif
Expand All @@ -163,8 +168,8 @@ Public Class AniGif
''' Gibt die Art wie die Grafik angezeigt wird zurück oder legt diese fest.
''' </summary>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(GifSizeMode_Description)>
<Category("Behavior")>
<MyDescription("GifSizeModeDescription")>
Public Property GifSizeMode() As SizeMode
Get
Return Me._GifSizeMode
Expand All @@ -181,8 +186,8 @@ Public Class AniGif
''' die in der Datei festgelegte Geschwindigkeit benutzt wird.
''' </summary>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(CustomDisplaySpeed_Description)>
<Category("Behavior")>
<MyDescription("CustomDisplaySpeedDescription")>
Public Property CustomDisplaySpeed As Boolean
Get
Return Me._CustomDisplaySpeed
Expand All @@ -201,8 +206,8 @@ Public Class AniGif
''' Bewirkt nur eine Änderung wenn <seealso cref="CustomDisplaySpeed"/> auf True festgelegt ist.
''' </remarks>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(FramesPerSecond_Description)>
<Category("Behavior")>
<MyDescription("FramesPerSecondDescription")>
Public Property FramesPerSecond As Decimal
Get
Return Me._FramesPerSecond
Expand All @@ -221,8 +226,8 @@ Public Class AniGif
''' Bewirkt nur eine Änderung wenn <seealso cref="GifSizeMode"/> auf <seealso cref="SizeMode.Zoom"/> festgelegt ist.
''' </remarks>
<Browsable(True)>
<Category(Category_Behavior)>
<Description(ZoomFactor_Description)>
<Category("Behavior")>
<MyDescription("ZoomFactorDescription")>
Public Property ZoomFactor As Decimal
Get
Return Me._ZoomFactor
Expand Down Expand Up @@ -478,7 +483,7 @@ Public Class AniGif
Me._MaxFrame = 0

'Ereignis auslösen
RaiseEvent NoAnimation(Me, New NoAnimationEventArgs)
RaiseEvent NoAnimation(Me, EventArgs.Empty)

Else

Expand All @@ -493,7 +498,7 @@ Public Class AniGif
End If

Me.Invalidate() 'neu zeichnen
Me.Initlayout() 'Animation starten
Me.InitLayout() 'Animation starten

End Sub

Expand Down Expand Up @@ -560,11 +565,17 @@ Public Class AniGif
''' Initialisiert die Komponenten dieser Klasse
''' </summary>
Private Sub InitializeComponent()

Me.components = New Container()
Me.Timer = New Timer(Me.components)
Me.SuspendLayout()
'
'Timer
'
Me.Timer.Interval = 200
'
'AniGif
'
Me.Name = "AniGif"
Me.ResumeLayout(False)

End Sub
Expand Down Expand Up @@ -643,8 +654,7 @@ Public Class AniGif
''' Zoomwert
''' </param>
Private Function GetRectStartSize(
Mode As SizeMode, Control As AniGif,
Gif As Bitmap, Zoom As Decimal) As Size
Mode As SizeMode, Control As AniGif, Gif As Bitmap, Zoom As Decimal) As Size

Select Case Mode

Expand Down Expand Up @@ -716,8 +726,7 @@ Public Class AniGif
''' Startgröße der Zeichenfläche.
''' </param>
Private Function GetRectStartPoint(
Mode As SizeMode, Control As AniGif,
Gif As Bitmap, RectStartSize As Size) As Point
Mode As SizeMode, Control As AniGif, Gif As Bitmap, RectStartSize As Size) As Point

Select Case Mode

Expand Down
Loading

0 comments on commit 90bdd32

Please sign in to comment.