项目结构调整

This commit is contained in:
艾竹
2023-04-16 20:11:40 +08:00
parent cbfbf96033
commit 81f91f3f35
2124 changed files with 218 additions and 5516 deletions

View File

@@ -0,0 +1,114 @@
namespace Winforms.Gauge._360
{
partial class Gauge360Example
{
/// <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.solidGauge1 = new LiveCharts.WinForms.SolidGauge();
this.solidGauge2 = new LiveCharts.WinForms.SolidGauge();
this.solidGauge3 = new LiveCharts.WinForms.SolidGauge();
this.solidGauge4 = new LiveCharts.WinForms.SolidGauge();
this.solidGauge5 = new LiveCharts.WinForms.SolidGauge();
this.solidGauge6 = new LiveCharts.WinForms.SolidGauge();
this.SuspendLayout();
//
// solidGauge1
//
this.solidGauge1.Location = new System.Drawing.Point(25, 13);
this.solidGauge1.Name = "solidGauge1";
this.solidGauge1.Size = new System.Drawing.Size(149, 151);
this.solidGauge1.TabIndex = 0;
this.solidGauge1.Text = "solidGauge1";
//
// solidGauge2
//
this.solidGauge2.Location = new System.Drawing.Point(220, 12);
this.solidGauge2.Name = "solidGauge2";
this.solidGauge2.Size = new System.Drawing.Size(149, 151);
this.solidGauge2.TabIndex = 1;
this.solidGauge2.Text = "solidGauge2";
//
// solidGauge3
//
this.solidGauge3.Location = new System.Drawing.Point(25, 170);
this.solidGauge3.Name = "solidGauge3";
this.solidGauge3.Size = new System.Drawing.Size(149, 151);
this.solidGauge3.TabIndex = 2;
this.solidGauge3.Text = "solidGauge3";
//
// solidGauge4
//
this.solidGauge4.Location = new System.Drawing.Point(220, 169);
this.solidGauge4.Name = "solidGauge4";
this.solidGauge4.Size = new System.Drawing.Size(149, 151);
this.solidGauge4.TabIndex = 3;
this.solidGauge4.Text = "solidGauge4";
//
// solidGauge5
//
this.solidGauge5.Location = new System.Drawing.Point(25, 347);
this.solidGauge5.Name = "solidGauge5";
this.solidGauge5.Size = new System.Drawing.Size(149, 151);
this.solidGauge5.TabIndex = 4;
this.solidGauge5.Text = "solidGauge5";
//
// solidGauge6
//
this.solidGauge6.Location = new System.Drawing.Point(220, 347);
this.solidGauge6.Name = "solidGauge6";
this.solidGauge6.Size = new System.Drawing.Size(149, 151);
this.solidGauge6.TabIndex = 5;
this.solidGauge6.Text = "solidGauge6";
//
// Gauge360Example
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(732, 547);
this.Controls.Add(this.solidGauge6);
this.Controls.Add(this.solidGauge5);
this.Controls.Add(this.solidGauge4);
this.Controls.Add(this.solidGauge3);
this.Controls.Add(this.solidGauge2);
this.Controls.Add(this.solidGauge1);
this.Name = "Gauge360Example";
this.Text = "Gauge360Exampl";
this.ResumeLayout(false);
}
#endregion
private LiveCharts.WinForms.SolidGauge solidGauge1;
private LiveCharts.WinForms.SolidGauge solidGauge2;
private LiveCharts.WinForms.SolidGauge solidGauge3;
private LiveCharts.WinForms.SolidGauge solidGauge4;
private LiveCharts.WinForms.SolidGauge solidGauge5;
private LiveCharts.WinForms.SolidGauge solidGauge6;
}
}

View File

@@ -0,0 +1,76 @@
using System.Windows;
using System.Windows.Forms;
using System.Windows.Media;
namespace Winforms.Gauge._360
{
public partial class Gauge360Example : Form
{
public Gauge360Example()
{
InitializeComponent();
//360 mode enabled
solidGauge1.Uses360Mode = true;
solidGauge1.From = 0;
solidGauge1.To = 100;
solidGauge1.Value = 50;
//rotated 90° and has an inverted clockwise fill
solidGauge2.Uses360Mode = true;
solidGauge2.From = 0;
solidGauge2.To = 100;
solidGauge2.Value = 50;
solidGauge2.Base.GaugeRenderTransform = new TransformGroup
{
Children = new TransformCollection
{
new RotateTransform(90),
new ScaleTransform {ScaleX = -1}
}
};
solidGauge3.Uses360Mode = true;
solidGauge3.From = 0;
solidGauge3.To = 100;
solidGauge3.Value = 20;
solidGauge3.HighFontSize = 60;
solidGauge3.Base.Foreground = Brushes.White;
solidGauge3.InnerRadius = 0;
solidGauge3.GaugeBackground = new SolidColorBrush(Color.FromRgb(71,128,181));
//the next gauge interpolates from color white, to color black according
//to the current value in the gauge
solidGauge4.Uses360Mode = true;
solidGauge4.From = 0;
solidGauge4.To = 100;
solidGauge4.Value = 50;
solidGauge4.HighFontSize = 60;
solidGauge4.Base.Foreground = new SolidColorBrush(Color.FromRgb(66,66,66));
solidGauge4.FromColor = Colors.White;
solidGauge4.ToColor = Colors.Black;
solidGauge4.InnerRadius = 0;
solidGauge4.Base.Background = Brushes.Transparent;
//standard gauge
solidGauge5.From = 0;
solidGauge5.To = 100;
solidGauge5.Value = 50;
//custom fill
solidGauge6.From = 0;
solidGauge6.To = 100;
solidGauge6.Value = 50;
solidGauge6.Base.LabelsVisibility = Visibility.Hidden;
solidGauge6.Base.GaugeActiveFill = new LinearGradientBrush
{
GradientStops = new GradientStopCollection
{
new GradientStop(Colors.Yellow, 0),
new GradientStop(Colors.Orange, .5),
new GradientStop(Colors.Red, 1)
}
};
}
}
}

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,60 @@
namespace Winforms.Gauge.AngularGauge
{
partial class AngularGugeForm
{
/// <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.angularGauge1 = new LiveCharts.WinForms.AngularGauge();
this.SuspendLayout();
//
// angularGauge1
//
this.angularGauge1.Dock = System.Windows.Forms.DockStyle.Fill;
this.angularGauge1.Location = new System.Drawing.Point(0, 0);
this.angularGauge1.Name = "angularGauge1";
this.angularGauge1.Size = new System.Drawing.Size(624, 439);
this.angularGauge1.TabIndex = 0;
this.angularGauge1.Text = "angularGauge1";
//
// AngularGugeForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(624, 439);
this.Controls.Add(this.angularGauge1);
this.Name = "AngularGugeForm";
this.Text = "AngularGugeForm";
this.ResumeLayout(false);
}
#endregion
private LiveCharts.WinForms.AngularGauge angularGauge1;
}
}

View File

@@ -0,0 +1,38 @@
using System.Windows;
using System.Windows.Forms;
using System.Windows.Media;
using LiveCharts.Wpf;
using Brushes = System.Windows.Media.Brushes;
namespace Winforms.Gauge.AngularGauge
{
public partial class AngularGugeForm : Form
{
public AngularGugeForm()
{
InitializeComponent();
angularGauge1.Value = 160;
angularGauge1.FromValue = 50;
angularGauge1.ToValue = 250;
angularGauge1.TicksForeground = Brushes.White;
angularGauge1.Base.Foreground = Brushes.White;
angularGauge1.Base.FontWeight = FontWeights.Bold;
angularGauge1.Base.FontSize = 16;
angularGauge1.SectionsInnerRadius = 0.5;
angularGauge1.Sections.Add(new AngularSection
{
FromValue = 50,
ToValue = 200,
Fill = new SolidColorBrush(Color.FromRgb(247,166,37))
});
angularGauge1.Sections.Add(new AngularSection
{
FromValue = 200,
ToValue = 250,
Fill = new SolidColorBrush(Color.FromRgb(254, 57, 57))
});
}
}
}

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>