From 64f3935692c10a45b58a41d2027f2b76578647e1 Mon Sep 17 00:00:00 2001 From: Tongg Date: Mon, 25 Nov 2024 14:17:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=92=BB=E7=9F=B3=E5=88=97=E8=A1=A8=20?= =?UTF-8?q?and=20=E6=A3=80=E6=B5=8B=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ViewModel/Grading/DiamondSelectVM.cs | 41 ++++++++++++++++++++++++++-- ViewModel/Grading/GradingResultVM.cs | 21 ++++++++++++++ 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/ViewModel/Grading/DiamondSelectVM.cs b/ViewModel/Grading/DiamondSelectVM.cs index ba68995..7572ecd 100644 --- a/ViewModel/Grading/DiamondSelectVM.cs +++ b/ViewModel/Grading/DiamondSelectVM.cs @@ -1,6 +1,43 @@ namespace SparkClient.ViewModel.Grading; -public class DiamondSelectVM:BaseViewModel +public class DiamondSelectVM : BaseViewModel { - + public DiamondSelectVM() + { + } + + /// + /// 获取钻石列表 + /// + /// + public void InitDiamondList(object param) + { + } + + /// + /// 切换钻石类型(右侧列表) + /// + /// 钻石类型 + public void ChangeDiamondType(object type) + { + + } + + /// + /// 开始检测(对soc和算法开始通讯) + /// + /// + public void StartGrading(object param) + { + + } + + /// + /// 跳转至检测结果 + /// + /// + public void GradingResult(object param) + { + + } } \ No newline at end of file diff --git a/ViewModel/Grading/GradingResultVM.cs b/ViewModel/Grading/GradingResultVM.cs index e7bb2fa..aeecf58 100644 --- a/ViewModel/Grading/GradingResultVM.cs +++ b/ViewModel/Grading/GradingResultVM.cs @@ -2,5 +2,26 @@ namespace SparkClient.ViewModel.Grading; public class GradingResultVM: BaseViewModel { + /// + /// 构造 + /// + /// 检测结果 + public GradingResultVM(object result) + { + + } + + /// + /// 修改检测标准 + /// + /// + public void ChangeNorm(object norm) + { + } + #region 钻石操作相关 + //暂略 + //部分代码(直接操作控件)需要在xaml.cs里边写 + //涉及到计算部分,这里做一个中转 + #endregion } \ No newline at end of file