mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-09 02:36:35 +08:00
项目结构调整
This commit is contained in:
270
Others/Live-Charts-master/WinFormsView/AngularGauge.cs
Normal file
270
Others/Live-Charts-master/WinFormsView/AngularGauge.cs
Normal file
@@ -0,0 +1,270 @@
|
||||
//The MIT License(MIT)
|
||||
|
||||
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
|
||||
|
||||
//Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
//of this software and associated documentation files (the "Software"), to deal
|
||||
//in the Software without restriction, including without limitation the rights
|
||||
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
//copies of the Software, and to permit persons to whom the Software is
|
||||
//furnished to do so, subject to the following conditions:
|
||||
|
||||
//The above copyright notice and this permission notice shall be included in all
|
||||
//copies or substantial portions of the Software.
|
||||
|
||||
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Windows.Forms.Integration;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Effects;
|
||||
using LiveCharts.Wpf;
|
||||
|
||||
namespace LiveCharts.WinForms
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Windows.Forms.Integration.ElementHost" />
|
||||
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design")]
|
||||
[DesignerSerializer("System.ComponentModel.Design.Serialization.TypeCodeDomSerializer , System.Design", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design")]
|
||||
|
||||
public class AngularGauge : ElementHost
|
||||
{
|
||||
/// <summary>
|
||||
/// The WPF base
|
||||
/// </summary>
|
||||
protected readonly Wpf.AngularGauge WpfBase = new Wpf.AngularGauge();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AngularGauge"/> class.
|
||||
/// </summary>
|
||||
public AngularGauge()
|
||||
{
|
||||
Child = WpfBase;
|
||||
|
||||
//workaround for windows 7 focus issue
|
||||
//https://github.com/beto-rodriguez/Live-Charts/issues/515
|
||||
HostContainer.MouseEnter += (sender, args) =>
|
||||
{
|
||||
Focus();
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The base.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Wpf.AngularGauge Base
|
||||
{
|
||||
get { return WpfBase; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the wedge.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The wedge.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double Wedge
|
||||
{
|
||||
get { return WpfBase.Wedge; }
|
||||
set { WpfBase.Wedge = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tick step.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The tick step.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double TickStep
|
||||
{
|
||||
get { return WpfBase.TicksStep; }
|
||||
set { WpfBase.TicksStep = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the labels step.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The labels step.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double LabelsStep
|
||||
{
|
||||
get { return WpfBase.LabelsStep; }
|
||||
set { WpfBase.LabelsStep = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets from value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// From value.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double FromValue
|
||||
{
|
||||
get { return WpfBase.FromValue; }
|
||||
set { WpfBase.FromValue = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets to value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// To value.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double ToValue
|
||||
{
|
||||
get { return WpfBase.ToValue; }
|
||||
set { WpfBase.ToValue = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the sections.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The sections.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public List<AngularSection> Sections
|
||||
{
|
||||
get { return WpfBase.Sections; }
|
||||
set { WpfBase.Sections = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The value.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double Value
|
||||
{
|
||||
get { return WpfBase.Value; }
|
||||
set { WpfBase.Value = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the label formatter.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The label formatter.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Func<double, string> LabelFormatter
|
||||
{
|
||||
get { return WpfBase.LabelFormatter; }
|
||||
set { WpfBase.LabelFormatter = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool DisableAnimations
|
||||
{
|
||||
get { return WpfBase.DisableaAnimations; }
|
||||
set { WpfBase.DisableaAnimations = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public TimeSpan AnimationsSpeed
|
||||
{
|
||||
get { return WpfBase.AnimationsSpeed; }
|
||||
set { WpfBase.AnimationsSpeed = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ticks foreground.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The ticks foreground.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush TicksForeground
|
||||
{
|
||||
get { return WpfBase.TicksForeground; }
|
||||
set { WpfBase.TicksForeground = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the sections inner radius.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The sections inner radius.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double SectionsInnerRadius
|
||||
{
|
||||
get { return WpfBase.SectionsInnerRadius; }
|
||||
set { WpfBase.SectionsInnerRadius = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the needle fill.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The needle fill.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush NeedleFill
|
||||
{
|
||||
get { return WpfBase.NeedleFill; }
|
||||
set { WpfBase.NeedleFill = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the labels effect.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The labels effect.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Effect LabelsEffect
|
||||
{
|
||||
get { return WpfBase.LabelsEffect; }
|
||||
set { WpfBase.LabelsEffect = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the ticks stroke thickness.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The ticks stroke thickness.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double TicksStrokeThickness
|
||||
{
|
||||
get { return WpfBase.TicksStrokeThickness; }
|
||||
set { WpfBase.TicksStrokeThickness = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
375
Others/Live-Charts-master/WinFormsView/CartesianChart.cs
Normal file
375
Others/Live-Charts-master/WinFormsView/CartesianChart.cs
Normal file
@@ -0,0 +1,375 @@
|
||||
//The MIT License(MIT)
|
||||
|
||||
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
|
||||
|
||||
//Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
//of this software and associated documentation files (the "Software"), to deal
|
||||
//in the Software without restriction, including without limitation the rights
|
||||
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
//copies of the Software, and to permit persons to whom the Software is
|
||||
//furnished to do so, subject to the following conditions:
|
||||
|
||||
//The above copyright notice and this permission notice shall be included in all
|
||||
//copies or substantial portions of the Software.
|
||||
|
||||
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Diagnostics;
|
||||
using System.Windows.Forms.Integration;
|
||||
using System.Windows.Media;
|
||||
using LiveCharts.Events;
|
||||
using LiveCharts.Wpf;
|
||||
using UserControl = System.Windows.Controls.UserControl;
|
||||
|
||||
namespace LiveCharts.WinForms
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Windows.Forms.Integration.ElementHost" />
|
||||
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design")]
|
||||
[DesignerSerializer("System.ComponentModel.Design.Serialization.TypeCodeDomSerializer , System.Design", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design")]
|
||||
public class CartesianChart : ElementHost
|
||||
{
|
||||
/// <summary>
|
||||
/// The WPF base
|
||||
/// </summary>
|
||||
protected readonly Wpf.CartesianChart WpfBase = new Wpf.CartesianChart();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CartesianChart"/> class.
|
||||
/// </summary>
|
||||
public CartesianChart()
|
||||
{
|
||||
Child = WpfBase;
|
||||
|
||||
//workaround for windows 7 focus issue
|
||||
//https://github.com/beto-rodriguez/Live-Charts/issues/515
|
||||
HostContainer.MouseEnter += (sender, args) =>
|
||||
{
|
||||
Focus();
|
||||
};
|
||||
|
||||
if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
|
||||
{
|
||||
WpfBase.Series = WpfBase.GetDesignerModeCollection();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the users clicks any point in the chart
|
||||
/// </summary>
|
||||
public event DataClickHandler DataClick
|
||||
{
|
||||
add { WpfBase.DataClick += value; }
|
||||
remove { WpfBase.DataClick += value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the users hovers over any point in the chart
|
||||
/// </summary>
|
||||
public event DataHoverHandler DataHover
|
||||
{
|
||||
add { WpfBase.DataHover += value; }
|
||||
remove { WpfBase.DataHover += value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs every time the chart updates
|
||||
/// </summary>
|
||||
public event UpdaterTickHandler UpdaterTick
|
||||
{
|
||||
add { WpfBase.UpdaterTick += value; }
|
||||
remove { WpfBase.UpdaterTick += value; }
|
||||
}
|
||||
|
||||
#region ChartProperties
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The base.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Wpf.CartesianChart Base { get { return WpfBase; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the axis y.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis y.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public AxesCollection AxisY
|
||||
{
|
||||
get { return WpfBase.AxisY; }
|
||||
set { WpfBase.AxisY = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the axis x.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis x.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public AxesCollection AxisX
|
||||
{
|
||||
get { return WpfBase.AxisX; }
|
||||
set { WpfBase.AxisX = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default legend.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The default legend.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public UserControl DefaultLegend
|
||||
{
|
||||
get { return WpfBase.ChartLegend; }
|
||||
set { WpfBase.ChartLegend = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or sets the zoom.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The zoom.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public ZoomingOptions Zoom
|
||||
{
|
||||
get { return WpfBase.Zoom; }
|
||||
set { WpfBase.Zoom = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the pan.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The pan.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public PanningOptions Pan
|
||||
{
|
||||
get { return WpfBase.Pan; }
|
||||
set { WpfBase.Pan = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the legend location.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The legend location.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public LegendLocation LegendLocation
|
||||
{
|
||||
get { return WpfBase.LegendLocation; }
|
||||
set { WpfBase.LegendLocation = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The series.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public SeriesCollection Series
|
||||
{
|
||||
get { return WpfBase.Series; }
|
||||
set { WpfBase.Series = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public TimeSpan AnimationsSpeed
|
||||
{
|
||||
get { return WpfBase.AnimationsSpeed; }
|
||||
set { WpfBase.AnimationsSpeed = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool DisableAnimations
|
||||
{
|
||||
get { return WpfBase.DisableAnimations; }
|
||||
set { WpfBase.DisableAnimations = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the data tooltip.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The data tooltip.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public UserControl DataTooltip
|
||||
{
|
||||
get { return WpfBase.DataTooltip; }
|
||||
set { WpfBase.DataTooltip = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="CartesianChart"/> is hoverable.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if hoverable; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool Hoverable
|
||||
{
|
||||
get { return Base.Hoverable; }
|
||||
set { Base.Hoverable = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll mode.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll mode.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public ScrollMode ScrollMode { get { return Base.ScrollMode; } set { Base.ScrollMode = value; } }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll horizontal from.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll horizontal from.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double ScrollHorizontalFrom
|
||||
{
|
||||
get { return Base.ScrollHorizontalFrom; }
|
||||
set { Base.ScrollHorizontalFrom = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll horizontal to.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll horizontal to.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double ScrollHorizontalTo
|
||||
{
|
||||
get { return Base.ScrollHorizontalTo; }
|
||||
set { Base.ScrollHorizontalTo = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll vertical from.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll vertical from.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double ScrollVerticalFrom
|
||||
{
|
||||
get { return Base.ScrollVerticalFrom; }
|
||||
set { Base.ScrollVerticalFrom = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll vertical to.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll vertical to.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double ScrollVerticalTo
|
||||
{
|
||||
get { return Base.ScrollVerticalTo; }
|
||||
set { Base.ScrollVerticalTo = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the scroll bar fill.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The scroll bar fill.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush ScrollBarFill
|
||||
{
|
||||
get { return Base.ScrollBarFill; }
|
||||
set { Base.ScrollBarFill = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the background.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The background.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush Background
|
||||
{
|
||||
get { return WpfBase.Background; }
|
||||
set { WpfBase.Background = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the visual elements.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The visual elements.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public VisualElementsCollection VisualElements
|
||||
{
|
||||
get { return WpfBase.VisualElements; }
|
||||
set { WpfBase.VisualElements = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the state of the updater.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The state of the updater.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public UpdaterState UpdaterState
|
||||
{
|
||||
get { return WpfBase.UpdaterState; }
|
||||
set { WpfBase.UpdaterState = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
/// <summary>
|
||||
/// Updates the specified restart view.
|
||||
/// </summary>
|
||||
/// <param name="restartView">if set to <c>true</c> [restart view].</param>
|
||||
/// <param name="force">if set to <c>true</c> [force].</param>
|
||||
public void Update(bool restartView, bool force)
|
||||
{
|
||||
WpfBase.Update(restartView, force);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
38
Others/Live-Charts-master/WinFormsView/Form1.Designer.cs
generated
Normal file
38
Others/Live-Charts-master/WinFormsView/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,38 @@
|
||||
namespace WinFormsView
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <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.components = new System.ComponentModel.Container();
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Text = "Form1";
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
20
Others/Live-Charts-master/WinFormsView/Form1.cs
Normal file
20
Others/Live-Charts-master/WinFormsView/Form1.cs
Normal 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 WinFormsView
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Others/Live-Charts-master/WinFormsView/Form1.resx
Normal file
120
Others/Live-Charts-master/WinFormsView/Form1.resx
Normal 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>
|
||||
334
Others/Live-Charts-master/WinFormsView/Gauge.cs
Normal file
334
Others/Live-Charts-master/WinFormsView/Gauge.cs
Normal file
@@ -0,0 +1,334 @@
|
||||
//The MIT License(MIT)
|
||||
|
||||
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
|
||||
|
||||
//Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
//of this software and associated documentation files (the "Software"), to deal
|
||||
//in the Software without restriction, including without limitation the rights
|
||||
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
//copies of the Software, and to permit persons to whom the Software is
|
||||
//furnished to do so, subject to the following conditions:
|
||||
|
||||
//The above copyright notice and this permission notice shall be included in all
|
||||
//copies or substantial portions of the Software.
|
||||
|
||||
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Windows;
|
||||
using System.Windows.Forms.Integration;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace LiveCharts.WinForms
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Windows.Forms.Integration.ElementHost" />
|
||||
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design")]
|
||||
[DesignerSerializer("System.ComponentModel.Design.Serialization.TypeCodeDomSerializer , System.Design", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design")]
|
||||
|
||||
public class SolidGauge : ElementHost
|
||||
{
|
||||
/// <summary>
|
||||
/// The WPF base
|
||||
/// </summary>
|
||||
protected readonly Wpf.Gauge WpfBase = new Wpf.Gauge();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SolidGauge"/> class.
|
||||
/// </summary>
|
||||
public SolidGauge()
|
||||
{
|
||||
Child = WpfBase;
|
||||
|
||||
//workaround for windows 7 focus issue
|
||||
//https://github.com/beto-rodriguez/Live-Charts/issues/515
|
||||
HostContainer.MouseEnter += (sender, args) =>
|
||||
{
|
||||
Focus();
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The base.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Wpf.Gauge Base
|
||||
{
|
||||
get { return WpfBase; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [uses360 mode].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [uses360 mode]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool Uses360Mode
|
||||
{
|
||||
get { return WpfBase.Uses360Mode; }
|
||||
set { WpfBase.Uses360Mode = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool DisableAnimations
|
||||
{
|
||||
get { return WpfBase.DisableAnimations; }
|
||||
set { WpfBase.DisableAnimations = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets from.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// From.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double From
|
||||
{
|
||||
get { return WpfBase.From; }
|
||||
set { WpfBase.From = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets to.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// To.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double To
|
||||
{
|
||||
get { return WpfBase.To; }
|
||||
set { WpfBase.To = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the value.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The value.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double Value
|
||||
{
|
||||
get { return WpfBase.Value; }
|
||||
set { WpfBase.Value = value; }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the inner radius.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The inner radius.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double? InnerRadius
|
||||
{
|
||||
get { return WpfBase.InnerRadius; }
|
||||
set { WpfBase.InnerRadius = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the stroke.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The stroke.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush Stroke
|
||||
{
|
||||
get { return WpfBase.Stroke; }
|
||||
set { WpfBase.Stroke = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the stroke thickness.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The stroke thickness.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double StrokeThickness
|
||||
{
|
||||
get { return WpfBase.StrokeThickness; }
|
||||
set { WpfBase.StrokeThickness = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets to color.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// To color.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Color ToColor
|
||||
{
|
||||
get { return WpfBase.ToColor; }
|
||||
set { WpfBase.ToColor = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets from color.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// From color.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Color FromColor
|
||||
{
|
||||
get { return WpfBase.FromColor; }
|
||||
set { WpfBase.FromColor = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the gauge background.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The gauge background.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush GaugeBackground
|
||||
{
|
||||
get { return WpfBase.GaugeBackground; }
|
||||
set { WpfBase.GaugeBackground = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public TimeSpan AnimationsSpeed
|
||||
{
|
||||
get { return WpfBase.AnimationsSpeed; }
|
||||
set { WpfBase.AnimationsSpeed = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the label formatter.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The label formatter.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Func<double, string> LabelFormatter
|
||||
{
|
||||
get { return WpfBase.LabelFormatter; }
|
||||
set { WpfBase.LabelFormatter = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the high font.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The size of the high font.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double? HighFontSize
|
||||
{
|
||||
get { return WpfBase.HighFontSize; }
|
||||
set { WpfBase.HighFontSize = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the size of the font.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The size of the font.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double FontSize
|
||||
{
|
||||
get { return WpfBase.FontSize; }
|
||||
set { WpfBase.FontSize = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the font family.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The font family.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public FontFamily FontFamily
|
||||
{
|
||||
get { return WpfBase.FontFamily; }
|
||||
set { WpfBase.FontFamily = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the font weight.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The font weight.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public FontWeight FontWeight
|
||||
{
|
||||
get { return WpfBase.FontWeight; }
|
||||
set { WpfBase.FontWeight = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the font style.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The font style.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public FontStyle FontStyle
|
||||
{
|
||||
get { return WpfBase.FontStyle; }
|
||||
set { WpfBase.FontStyle = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the font stretch.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The font stretch.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public FontStretch FontStretch
|
||||
{
|
||||
get { return WpfBase.FontStretch; }
|
||||
set { WpfBase.FontStretch = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the fore ground.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The fore ground.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush ForeGround
|
||||
{
|
||||
get { return WpfBase.Foreground; }
|
||||
set { WpfBase.Foreground = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
226
Others/Live-Charts-master/WinFormsView/GeoMap.cs
Normal file
226
Others/Live-Charts-master/WinFormsView/GeoMap.cs
Normal file
@@ -0,0 +1,226 @@
|
||||
//The MIT License(MIT)
|
||||
|
||||
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
|
||||
|
||||
//Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
//of this software and associated documentation files (the "Software"), to deal
|
||||
//in the Software without restriction, including without limitation the rights
|
||||
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
//copies of the Software, and to permit persons to whom the Software is
|
||||
//furnished to do so, subject to the following conditions:
|
||||
|
||||
//The above copyright notice and this permission notice shall be included in all
|
||||
//copies or substantial portions of the Software.
|
||||
|
||||
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Windows.Forms.Integration;
|
||||
using System.Windows.Media;
|
||||
using LiveCharts.Maps;
|
||||
|
||||
namespace LiveCharts.WinForms
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Windows.Forms.Integration.ElementHost" />
|
||||
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design")]
|
||||
[DesignerSerializer("System.ComponentModel.Design.Serialization.TypeCodeDomSerializer , System.Design", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design")]
|
||||
|
||||
public class GeoMap : ElementHost
|
||||
{
|
||||
/// <summary>
|
||||
/// The WPF base
|
||||
/// </summary>
|
||||
protected readonly Wpf.GeoMap WpfBase = new Wpf.GeoMap();
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GeoMap"/> class.
|
||||
/// </summary>
|
||||
public GeoMap()
|
||||
{
|
||||
Child = WpfBase;
|
||||
|
||||
//workaround for windows 7 focus issue
|
||||
//https://github.com/beto-rodriguez/Live-Charts/issues/515
|
||||
HostContainer.MouseEnter += (sender, args) =>
|
||||
{
|
||||
Focus();
|
||||
};
|
||||
|
||||
WpfBase.LandClick += (o, point) =>
|
||||
{
|
||||
if (LandClick != null) LandClick.Invoke(o, point);
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when [land click].
|
||||
/// </summary>
|
||||
public event Action<object, MapData> LandClick;
|
||||
|
||||
/// <summary>
|
||||
/// Gets the base.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The base.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Wpf.GeoMap Base
|
||||
{
|
||||
get { return WpfBase; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the language pack.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The language pack.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Dictionary<string, string> LanguagePack
|
||||
{
|
||||
get { return WpfBase.LanguagePack; }
|
||||
set { WpfBase.LanguagePack = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default land fill.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The default land fill.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush DefaultLandFill
|
||||
{
|
||||
get { return WpfBase.DefaultLandFill; }
|
||||
set { WpfBase.DefaultLandFill = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the land stroke thickness.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The land stroke thickness.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double LandStrokeThickness
|
||||
{
|
||||
get { return WpfBase.LandStrokeThickness; }
|
||||
set { WpfBase.LandStrokeThickness = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the land stroke.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The land stroke.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Brush LandStroke
|
||||
{
|
||||
get { return WpfBase.LandStroke; }
|
||||
set { WpfBase.LandStroke = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool DisableAnimations
|
||||
{
|
||||
get { return WpfBase.DisableAnimations; }
|
||||
set { WpfBase.DisableAnimations = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public TimeSpan AnimationsSpeed
|
||||
{
|
||||
get { return WpfBase.AnimationsSpeed; }
|
||||
set { WpfBase.AnimationsSpeed = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this <see cref="GeoMap"/> is hoverable.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if hoverable; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool Hoverable
|
||||
{
|
||||
get { return WpfBase.Hoverable; }
|
||||
set { WpfBase.Hoverable = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the heat map.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The heat map.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public Dictionary<string, double> HeatMap
|
||||
{
|
||||
get { return WpfBase.HeatMap; }
|
||||
set { WpfBase.HeatMap = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the gradient stop collection.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The gradient stop collection.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public GradientStopCollection GradientStopCollection
|
||||
{
|
||||
get { return WpfBase.GradientStopCollection; }
|
||||
set { WpfBase.GradientStopCollection = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the source.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The source.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public string Source
|
||||
{
|
||||
get { return WpfBase.Source; }
|
||||
set { WpfBase.Source = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [enable zooming and panning].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [enable zooming and panning]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool EnableZoomingAndPanning
|
||||
{
|
||||
get { return WpfBase.EnableZoomingAndPanning; }
|
||||
set { WpfBase.EnableZoomingAndPanning = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
286
Others/Live-Charts-master/WinFormsView/PieChart.cs
Normal file
286
Others/Live-Charts-master/WinFormsView/PieChart.cs
Normal file
@@ -0,0 +1,286 @@
|
||||
//The MIT License(MIT)
|
||||
|
||||
//Copyright(c) 2016 Alberto Rodriguez & LiveCharts Contributors
|
||||
|
||||
//Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
//of this software and associated documentation files (the "Software"), to deal
|
||||
//in the Software without restriction, including without limitation the rights
|
||||
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
//copies of the Software, and to permit persons to whom the Software is
|
||||
//furnished to do so, subject to the following conditions:
|
||||
|
||||
//The above copyright notice and this permission notice shall be included in all
|
||||
//copies or substantial portions of the Software.
|
||||
|
||||
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
//SOFTWARE.
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.Design.Serialization;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Forms.Integration;
|
||||
using LiveCharts.Events;
|
||||
using LiveCharts.Wpf;
|
||||
|
||||
namespace LiveCharts.WinForms
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <seealso cref="System.Windows.Forms.Integration.ElementHost" />
|
||||
[Designer("System.Windows.Forms.Design.ControlDesigner, System.Design")]
|
||||
[DesignerSerializer("System.ComponentModel.Design.Serialization.TypeCodeDomSerializer , System.Design", "System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design")]
|
||||
public class PieChart : ElementHost
|
||||
{
|
||||
/// <summary>
|
||||
/// The WPF base
|
||||
/// </summary>
|
||||
protected readonly Wpf.PieChart WpfBase = new Wpf.PieChart();
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="PieChart"/> class.
|
||||
/// </summary>
|
||||
public PieChart()
|
||||
{
|
||||
Child = WpfBase;
|
||||
|
||||
//workaround for windows 7 focus issue
|
||||
//https://github.com/beto-rodriguez/Live-Charts/issues/515
|
||||
HostContainer.MouseEnter += (sender, args) =>
|
||||
{
|
||||
Focus();
|
||||
};
|
||||
|
||||
if (LicenseManager.UsageMode == LicenseUsageMode.Designtime)
|
||||
{
|
||||
WpfBase.Series = WpfBase.GetDesignerModeCollection();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the users clicks any point in the chart
|
||||
/// </summary>
|
||||
public event DataClickHandler DataClick
|
||||
{
|
||||
add { WpfBase.DataClick += value; }
|
||||
remove { WpfBase.DataClick += value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs when the users hovers over any point in the chart
|
||||
/// </summary>
|
||||
public event DataHoverHandler DataHover
|
||||
{
|
||||
add { WpfBase.DataHover += value; }
|
||||
remove { WpfBase.DataHover += value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Occurs every time the chart updates
|
||||
/// </summary>
|
||||
public event UpdaterTickHandler UpdaterTick
|
||||
{
|
||||
add { WpfBase.UpdaterTick += value; }
|
||||
remove { WpfBase.UpdaterTick += value; }
|
||||
}
|
||||
|
||||
#region ChartProperties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the axis y.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis y.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
|
||||
public AxesCollection AxisY
|
||||
{
|
||||
get { return WpfBase.AxisY; }
|
||||
set { WpfBase.AxisY = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the axis x.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The axis x.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
|
||||
public AxesCollection AxisX
|
||||
{
|
||||
get { return WpfBase.AxisX; }
|
||||
set { WpfBase.AxisX = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the default legend.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The default legend.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
|
||||
public UserControl DefaultLegend
|
||||
{
|
||||
get { return WpfBase.ChartLegend; }
|
||||
set { WpfBase.ChartLegend = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the zoom.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The zoom.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
|
||||
public ZoomingOptions Zoom
|
||||
{
|
||||
get { return WpfBase.Zoom; }
|
||||
set { WpfBase.Zoom = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the legend location.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The legend location.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
|
||||
public LegendLocation LegendLocation
|
||||
{
|
||||
get { return WpfBase.LegendLocation; }
|
||||
set { WpfBase.LegendLocation = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the series.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The series.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public SeriesCollection Series
|
||||
{
|
||||
get { return WpfBase.Series; }
|
||||
set { WpfBase.Series = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the animations speed.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The animations speed.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public TimeSpan AnimationsSpeed
|
||||
{
|
||||
get { return WpfBase.AnimationsSpeed; }
|
||||
set { WpfBase.AnimationsSpeed = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [disable animations].
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// <c>true</c> if [disable animations]; otherwise, <c>false</c>.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public bool DisableAnimations
|
||||
{
|
||||
get { return WpfBase.DisableAnimations; }
|
||||
set { WpfBase.DisableAnimations = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the data tooltip.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The data tooltip.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public UserControl DataTooltip
|
||||
{
|
||||
get { return WpfBase.DataTooltip; }
|
||||
set { WpfBase.DataTooltip = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region ThisChartProperties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the inner radius.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The inner radius.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double InnerRadius
|
||||
{
|
||||
get { return WpfBase.InnerRadius; }
|
||||
set { WpfBase.InnerRadius = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the starting rotation angle.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The starting rotation angle.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double StartingRotationAngle
|
||||
{
|
||||
get { return WpfBase.StartingRotationAngle; }
|
||||
set { WpfBase.StartingRotationAngle = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the state of the updater.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The state of the updater.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public UpdaterState UpdaterState
|
||||
{
|
||||
get { return WpfBase.UpdaterState; }
|
||||
set { WpfBase.UpdaterState = value; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the units that a slice is pushed out when a user moves the mouse over data point.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// The hover push out.
|
||||
/// </value>
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public double HoverPushOut
|
||||
{
|
||||
get { return WpfBase.HoverPushOut; }
|
||||
set { WpfBase.HoverPushOut = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Methods
|
||||
|
||||
/// <summary>
|
||||
/// Updates the specified restart view.
|
||||
/// </summary>
|
||||
/// <param name="restartView">if set to <c>true</c> [restart view].</param>
|
||||
/// <param name="force">if set to <c>true</c> [force].</param>
|
||||
public void Update(bool restartView, bool force)
|
||||
{
|
||||
WpfBase.Update(restartView, force);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("LiveCharts.WinForms")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("LiveCharts.WinForms")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2016 Alberto Rodríguez Orozco")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("45e67c4f-88df-4617-acb1-b54c5dbf8390")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.9.5")]
|
||||
[assembly: AssemblyFileVersion("0.9.5")]
|
||||
100
Others/Live-Charts-master/WinFormsView/WinFormsView.csproj
Normal file
100
Others/Live-Charts-master/WinFormsView/WinFormsView.csproj
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{45E67C4F-88DF-4617-ACB1-B54C5DBF8390}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>LiveCharts.WinForms</RootNamespace>
|
||||
<AssemblyName>LiveCharts.WinForms</AssemblyName>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v4.0' ">NET40</DefineConstants>
|
||||
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v4.5' ">NET45</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<DocumentationFile>bin\Debug\LiveCharts.WinForms.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v4.0' ">NET40</DefineConstants>
|
||||
<DefineConstants Condition=" '$(TargetFrameworkVersion)' == 'v4.5' ">NET45</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<DocumentationFile>bin\Debug\LiveCharts.WinForms.XML</DocumentationFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<AssemblyOriginatorKeyFile>sign.pfx</AssemblyOriginatorKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xaml" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="UIAutomationProvider" />
|
||||
<Reference Include="WindowsBase" />
|
||||
<Reference Include="WindowsFormsIntegration" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AngularGauge.cs" />
|
||||
<Compile Include="CartesianChart.cs" />
|
||||
<Compile Include="Gauge.cs" />
|
||||
<Compile Include="GeoMap.cs" />
|
||||
<Compile Include="PieChart.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Service References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="app.config" />
|
||||
<None Include="sign.pfx" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core40\Core40.csproj">
|
||||
<Project>{f261c3d7-6194-4625-9516-044081b06028}</Project>
|
||||
<Name>Core40</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\WpfView\WpfView.csproj">
|
||||
<Project>{4d253423-ae05-47f6-a59d-9162ec0bb1f2}</Project>
|
||||
<Name>WpfView</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -0,0 +1,2 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp50</s:String></wpf:ResourceDictionary>
|
||||
44
Others/Live-Charts-master/WinFormsView/WinFormsView.nuspec
Normal file
44
Others/Live-Charts-master/WinFormsView/WinFormsView.nuspec
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>LiveCharts.WinForms</id>
|
||||
<version>0.0.0.0</version>
|
||||
<title>LiveCharts.WinForms</title>
|
||||
<authors>Beto Rodriguez</authors>
|
||||
<owners>Beto Rodriguez</owners>
|
||||
<licenseUrl>https://github.com/beto-rodriguez/Live-Charts/blob/master/LICENSE.TXT</licenseUrl>
|
||||
<projectUrl>http://lvcharts.net/</projectUrl>
|
||||
<iconUrl>http://lvcharts.net/Content/Images/Logos/lcred.png</iconUrl>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<description>Simple, flexible, interactive and powerful data visualization for WinForms</description>
|
||||
<releaseNotes>See https://github.com/beto-rodriguez/Live-Charts/releases</releaseNotes>
|
||||
<copyright>Copyright 2016</copyright>
|
||||
<tags>livechart, live, chart, charting, plot, plots, plotting, graph, graphs, graphing, data, winform, winforms, win, form, forms</tags>
|
||||
<dependencies>
|
||||
<dependency id="LiveCharts" version="0.0.0.0" />
|
||||
<dependency id="LiveCharts.Wpf" version="0.0.0.0" />
|
||||
</dependencies>
|
||||
<frameworkAssemblies>
|
||||
<frameworkAssembly assemblyName="PresentationFramework" targetFramework="net40" />
|
||||
<frameworkAssembly assemblyName="PresentationCore" targetFramework="net40"/>
|
||||
<frameworkAssembly assemblyName="WindowsBase" targetFramework="net40" />
|
||||
<frameworkAssembly assemblyName="System.Xaml" targetFramework="net40"/>
|
||||
<frameworkAssembly assemblyName="WindowsFormsIntegration" targetFramework="net40" />
|
||||
|
||||
<frameworkAssembly assemblyName="PresentationFramework" targetFramework="net45" />
|
||||
<frameworkAssembly assemblyName="PresentationCore" targetFramework="net45"/>
|
||||
<frameworkAssembly assemblyName="WindowsBase" targetFramework="net45" />
|
||||
<frameworkAssembly assemblyName="System.Xaml" targetFramework="net45"/>
|
||||
<frameworkAssembly assemblyName="WindowsFormsIntegration" targetFramework="net45" />
|
||||
</frameworkAssemblies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="install.ps1" target="tools" />
|
||||
<file src="bin\net403\LiveCharts.WinForms.dll" target="lib\net40" />
|
||||
<file src="bin\net403\LiveCharts.WinForms.pdb" target="lib\net40" />
|
||||
<file src="bin\net403\LiveCharts.WinForms.xml" target="lib\net40" />
|
||||
<file src="bin\net45\LiveCharts.WinForms.dll" target="lib\net45" />
|
||||
<file src="bin\net45\LiveCharts.WinForms.pdb" target="lib\net45" />
|
||||
<file src="bin\net45\LiveCharts.WinForms.xml" target="lib\net45" />
|
||||
</files>
|
||||
</package>
|
||||
11
Others/Live-Charts-master/WinFormsView/app.config
Normal file
11
Others/Live-Charts-master/WinFormsView/app.config
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="LiveCharts" publicKeyToken="c5935629d38af058" culture="neutral"/>
|
||||
<bindingRedirect oldVersion="0.0.0.0-0.7.1.6" newVersion="0.7.1.6"/>
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
3
Others/Live-Charts-master/WinFormsView/install.ps1
Normal file
3
Others/Live-Charts-master/WinFormsView/install.ps1
Normal file
@@ -0,0 +1,3 @@
|
||||
param($installPath, $toolsPath, $package, $project)
|
||||
|
||||
$DTE.ItemOperations.Navigate("https://lvcharts.net/thanks/wpf")
|
||||
BIN
Others/Live-Charts-master/WinFormsView/nuget.exe
Normal file
BIN
Others/Live-Charts-master/WinFormsView/nuget.exe
Normal file
Binary file not shown.
8
Others/Live-Charts-master/WinFormsView/winforms.docs
Normal file
8
Others/Live-Charts-master/WinFormsView/winforms.docs
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<doc>
|
||||
<assembly>
|
||||
<name>LiveCharts.WinForms</name>
|
||||
</assembly>
|
||||
<members>
|
||||
</members>
|
||||
</doc>
|
||||
Reference in New Issue
Block a user