simplify new expression

This commit is contained in:
NaBian committed 2021-06-08 20:35:14 +08:00
1 parent 42b2cb3033
commit 193090da43
59 files changed
+149 -149

No files matched your search

@@ -240,10 +240,10 @@ namespace HandyControl.Controls
var positions = new Point3DCollection
{
new Point3D(-quarterWidth * flag, quarterHeight, 0),
new Point3D(-quarterWidth * flag, 0, 0),
new Point3D(quarterWidth * flag, 0, 0),
new Point3D(quarterWidth * flag, quarterHeight, 0)
new(-quarterWidth * flag, quarterHeight, 0),
new(-quarterWidth * flag, 0, 0),
new(quarterWidth * flag, 0, 0),
new(quarterWidth * flag, quarterHeight, 0)
};
var triangleIndices = new Int32Collection
@@ -258,10 +258,10 @@ namespace HandyControl.Controls
var textureCoordinates = new PointCollection
{
new Point(0, 0),
new Point(0, 1),
new Point(1, 1),
new Point(1, 0)
new(0, 0),
new(0, 1),
new(1, 1),
new(1, 0)
};
var geometry3D = new MeshGeometry3D
@@ -150,7 +150,7 @@ namespace HandyControl.Controls
/// <summary>
/// 刻度集合
/// </summary>
private readonly List<SpeTextBlock> _speBlockList = new List<SpeTextBlock>();
private readonly List<SpeTextBlock> _speBlockList = new();
/// <summary>
/// 初始化时时间
@@ -160,7 +160,7 @@ namespace HandyControl.Controls
/// <summary>
/// 时间段集合
/// </summary>
private readonly List<int> _timeSpeList = new List<int>
private readonly List<int> _timeSpeList = new()
{
7200000,
3600000,