-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
3,588 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> | ||
</startup> | ||
<runtime> | ||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" | ||
culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.2.5.0" newVersion="1.2.5.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Reflection.Metadata" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-1.4.5.0" newVersion="1.4.5.0" /> | ||
</dependentAssembly> | ||
<dependentAssembly> | ||
<assemblyIdentity name="System.Text.Encoding.CodePages" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-4.1.3.0" newVersion="4.1.3.0" /> | ||
</dependentAssembly> | ||
</assemblyBinding> | ||
</runtime> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#region Copyright Syncfusion Inc. 2001-2020. | ||
// Copyright Syncfusion Inc. 2001-2020. All rights reserved. | ||
// Use of this code is subject to the terms of our license. | ||
// A copy of the current license can be obtained at any time by e-mailing | ||
// licensing@syncfusion.com. Any infringement will be prosecuted under | ||
// applicable laws. | ||
#endregion | ||
|
||
using System; | ||
using System.Drawing; | ||
using Syncfusion.Windows.Forms.Chart; | ||
|
||
namespace SymuScenariosAndEvents | ||
{ | ||
public static class ChartAppearance | ||
{ | ||
public static void ApplyChartStyles(ChartControl chart) | ||
{ | ||
if (chart == null) | ||
{ | ||
throw new ArgumentNullException(nameof(chart)); | ||
} | ||
|
||
#region Chart Appearance Customization | ||
|
||
chart.Skins = Skins.Metro; | ||
chart.BorderAppearance.SkinStyle = ChartBorderSkinStyle.None; | ||
chart.BorderAppearance.FrameThickness = new ChartThickness(-2, -2, 2, 2); | ||
chart.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; | ||
chart.ChartArea.PrimaryXAxis.HidePartialLabels = true; | ||
chart.ElementsSpacing = 5; | ||
|
||
#endregion | ||
|
||
#region Axes Customization | ||
|
||
chart.PrimaryYAxis.RangeType = ChartAxisRangeType.Set; | ||
chart.PrimaryXAxis.RangeType = ChartAxisRangeType.Set; | ||
if (chart.Series.Count == 0 || chart.Series[0].Points.Count == 0) | ||
{ | ||
return; | ||
} | ||
var max = chart.Series[0].Points[0].YValues[0]; | ||
for (var i = 0; i < chart.Series.Count; i++) | ||
{ | ||
for (var j = 0; j < chart.Series[i].Points.Count; j++) | ||
{ | ||
max = Math.Max(max, chart.Series[i].Points[j].YValues[0]); | ||
} | ||
} | ||
chart.PrimaryYAxis.Range = new MinMaxInfo(0, max + 1, Math.Round(max / 10)); | ||
var min = chart.Series[0].Points[0].X; | ||
max = min; | ||
for (var i = 0; i < chart.Series.Count; i++) | ||
{ | ||
for (var j = 0; j < chart.Series[i].Points.Count; j++) | ||
{ | ||
min = Math.Min(min, chart.Series[i].Points[j].X); | ||
max = Math.Max(max, chart.Series[i].Points[j].X); | ||
} | ||
} | ||
chart.PrimaryXAxis.Range = new MinMaxInfo(min-10, max+10, Math.Round((max-min)/10)); | ||
|
||
chart.PrimaryXAxis.LabelRotate = true; | ||
chart.PrimaryXAxis.LabelRotateAngle = 270; | ||
|
||
chart.Series[0].Style.Border.Color = Color.Transparent; | ||
|
||
#endregion | ||
|
||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#region Licence | ||
|
||
// Description: Symu - SymuScenariosAndEvents | ||
// Website: https://symu.org | ||
// Copyright: (c) 2020 laurent morisseau | ||
// License : the program is distributed under the terms of the GNU General Public License | ||
|
||
#endregion | ||
|
||
namespace SymuScenariosAndEvents.Classes | ||
{ | ||
public enum EventType | ||
{ | ||
NoEvent = 0, | ||
OneShot = 1, | ||
Cyclical = 2, | ||
Random = 3 | ||
} | ||
} |
Oops, something went wrong.