From a383b2288dcfb90e9aa1dcf796e41d9c6be1e429 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 02 八月 2021 17:26:56 +0800 Subject: [PATCH] 1. 部分修改 --- src/Bro.Common.Model/Model/LaserScanParam.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Bro.Common.Model/Model/LaserScanParam.cs b/src/Bro.Common.Model/Model/LaserScanParam.cs index a7eb899..8c42409 100644 --- a/src/Bro.Common.Model/Model/LaserScanParam.cs +++ b/src/Bro.Common.Model/Model/LaserScanParam.cs @@ -1,4 +1,5 @@ -锘縰sing System; +锘縰sing Bro.Common.Helper; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -6,7 +7,7 @@ namespace Bro.Common.Model { - public class LaserScanParam + public class LaserScanParam : IComplexDisplay { public int Resolution_X { get; set; } public int Resolution_Y { get; set; } @@ -17,5 +18,15 @@ public int Offset_Z { get; set; } public int Angle_Z { get; set; } + + public override string ToString() + { + return GetDisplayText(); + } + + public string GetDisplayText() + { + return $"Resolution:{Resolution_X},{Resolution_Y},{Resolution_Z}; Offset:{Offset_X},{Offset_Y},{Offset_Z}; Angel_Z:{Angle_Z}"; + } } } -- Gitblit v1.8.0