From 3cb7be72632db59b36be278809dcc5ccd526fdb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A6=82=E6=84=8F=20=E5=BD=AD?= <2417589739@qq.com>
Date: Mon, 13 Jun 2022 16:39:24 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E9=85=8D=E6=96=B9=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Themes/Generic.xaml | 11 +-
.../UserControls/IcoButton.cs | 49 +++-
DosingSystem/Model/LocaPar.cs | 14 +
DosingSystem/Model/RecipeModel.cs | 37 +++
DosingSystem/View/MainWindow.xaml | 184 +-------------
DosingSystem/View/NewRecipeView.xaml | 203 +++++++++++++++
DosingSystem/View/NewRecipeView.xaml.cs | 31 +++
DosingSystem/View/RecipeSettingsView.xaml | 240 +++++++++++++++++-
DosingSystem/ViewModel/MainViewModel.cs | 3 +-
DosingSystem/ViewModel/NewRecipeViewModel.cs | 111 ++++++++
.../ViewModel/RecipeSettingsViewModel.cs | 22 ++
11 files changed, 710 insertions(+), 195 deletions(-)
create mode 100644 DosingSystem/Model/LocaPar.cs
create mode 100644 DosingSystem/Model/RecipeModel.cs
create mode 100644 DosingSystem/View/NewRecipeView.xaml
create mode 100644 DosingSystem/View/NewRecipeView.xaml.cs
create mode 100644 DosingSystem/ViewModel/NewRecipeViewModel.cs
diff --git a/BPASmartClient.CustomResource/Themes/Generic.xaml b/BPASmartClient.CustomResource/Themes/Generic.xaml
index df62dff6..4bbc2757 100644
--- a/BPASmartClient.CustomResource/Themes/Generic.xaml
+++ b/BPASmartClient.CustomResource/Themes/Generic.xaml
@@ -15,10 +15,6 @@
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}" />
-
+
diff --git a/BPASmartClient.CustomResource/UserControls/IcoButton.cs b/BPASmartClient.CustomResource/UserControls/IcoButton.cs
index ddec3c05..aa8a72c3 100644
--- a/BPASmartClient.CustomResource/UserControls/IcoButton.cs
+++ b/BPASmartClient.CustomResource/UserControls/IcoButton.cs
@@ -72,6 +72,28 @@ namespace BPASmartClient.CustomResource.UserControls
DependencyProperty.Register("Command", typeof(Action), typeof(IcoButton),
new PropertyMetadata(default, new PropertyChangedCallback(OnPropertyChanged)));
+
+ public Action