From c40856cb163375a2c0992fb2ca01e1d5b21529dd Mon Sep 17 00:00:00 2001
From: fyf <11621@LAPTOP-04QQU0AO>
Date: Thu, 21 Apr 2022 13:50:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=BB=E7=95=8C=E9=9D=A2?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Themes/GenricStyle.xaml | 108 ++++++++++++++----
.../Themes/MyStyle.xaml | 6 +-
BPASmartClient.KLMCoffee/CoffeeMachine.cs | 8 +-
BPASmartClient/DeviceInfo.xml | 14 ++-
BPASmartClient/MainWindow.xaml | 95 +++++++--------
5 files changed, 139 insertions(+), 92 deletions(-)
diff --git a/BPASmartClient.CustomResource/Themes/GenricStyle.xaml b/BPASmartClient.CustomResource/Themes/GenricStyle.xaml
index a1a72597..fc343b9d 100644
--- a/BPASmartClient.CustomResource/Themes/GenricStyle.xaml
+++ b/BPASmartClient.CustomResource/Themes/GenricStyle.xaml
@@ -22,6 +22,26 @@
+
+
-
-
-
+
+
+
+ PopupAnimation="Slide"
+ >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
@@ -1455,8 +1500,8 @@
-
-
+
+
@@ -1491,11 +1536,13 @@
Grid.Column="1"
ContentSource="Header"
RecognizesAccessKey="True"/>
-
@@ -1514,13 +1561,22 @@
-
+
+
-
-
+
+
+
+
+
+
+
+
@@ -1570,8 +1626,7 @@
-
+
+
+
+
+
+
+
+
@@ -1613,9 +1675,9 @@
-
+
diff --git a/BPASmartClient.CustomResource/Themes/MyStyle.xaml b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
index b8e5fade..1303a6ba 100644
--- a/BPASmartClient.CustomResource/Themes/MyStyle.xaml
+++ b/BPASmartClient.CustomResource/Themes/MyStyle.xaml
@@ -28,8 +28,8 @@
-
-
+
+
@@ -736,7 +736,7 @@
-->
-
+
diff --git a/BPASmartClient.KLMCoffee/CoffeeMachine.cs b/BPASmartClient.KLMCoffee/CoffeeMachine.cs
index 9f76bdd6..5ef04af9 100644
--- a/BPASmartClient.KLMCoffee/CoffeeMachine.cs
+++ b/BPASmartClient.KLMCoffee/CoffeeMachine.cs
@@ -113,6 +113,8 @@ namespace BPASmartClient.KLMCoffee
if (Encoding.ASCII.GetString(data.ToArray()) == ":")
{
temp.Add(item);
+ while (dataStorage.GetSize() < 32) { Thread.Sleep(5); }
+
while (temp.Count < 32)
{
temp.Add(dataStorage.GetData());
@@ -125,6 +127,7 @@ namespace BPASmartClient.KLMCoffee
var package = Encoding.ASCII.GetString(temp.ToArray());
ProcessMsg(package);
}
+ temp.Clear();
}
continue;
}
@@ -174,11 +177,6 @@ namespace BPASmartClient.KLMCoffee
commProxy = new SerialPortClient(PortName,(BaudRates)Enum.Parse(typeof(BaudRates),BaudRate));
commProxy.SetDataStorage(dataStorage);
- //string sdas = ":010510000000000000000000F3A\r\n";
- //byte[] sdsd = new K95Command().ascii2Hex(sdas);
- //dataStorage.PutData(sdsd);
- //ResolveMsg();
-
//伽乐美咖啡机制作
EventBus.EventBus.GetInstance().Subscribe(DeviceId,delegate (IEvent @event,EventCallBackHandle callBack)
{
diff --git a/BPASmartClient/DeviceInfo.xml b/BPASmartClient/DeviceInfo.xml
index 31b3514e..a432a1db 100644
--- a/BPASmartClient/DeviceInfo.xml
+++ b/BPASmartClient/DeviceInfo.xml
@@ -9,12 +9,7 @@
0
-
-
- COM5
- 9600
-
-
+
COM5
@@ -40,6 +35,13 @@
+
+
+ COM8
+ 38400
+
+
+
diff --git a/BPASmartClient/MainWindow.xaml b/BPASmartClient/MainWindow.xaml
index 51ecd269..7c91a097 100644
--- a/BPASmartClient/MainWindow.xaml
+++ b/BPASmartClient/MainWindow.xaml
@@ -20,16 +20,16 @@
M61.141068 400.532698L3.815672 725.688936l61.197513 74.337875 83.560965-473.80941H-0.067734zM79.169555 298.333642h74.315297l-61.208801-74.315297zM359.011862 660.653173l-13.095206 74.337875 53.566168 65.024474 13.095207-74.326586zM455.171319 484.138819v0.011289H287.959077l59.3687 72.068792L107.64034 716.398113 92.908233 800.015522l347.508401-232.259293 1.648189-9.302112h0.011289l13.106496-74.304009h-0.011289zM494.490806 261.181638H187.904926l-13.095207 74.315297 61.208802 74.315298 19.676677-111.478591h157.921418l-26.201702 148.641884h74.315297l32.771884-185.793888h-0.011289z M617.224501 400.543987l-57.359263 325.156238 61.23138 74.326586 83.527098-473.80941H556.00441zM635.23041 298.344931h74.315297L648.325616 224.018345zM982.783966 224.018345h-74.326586l-32.749306 185.805177H717.7415l30.626979 37.163293H869.137893l-62.224809 353.039996 87.410504-74.326586 49.140891-278.71341h74.315298l6.558892-37.163293h-74.326586z
-
+
-
+
@@ -40,15 +40,43 @@
-
-
-
-
-
-
-
-
+
+
@@ -74,52 +102,9 @@
-
-
-
-
-
-
- 相关设备状态
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+