diff --git a/BPASmartClient.Business/BPASmartClient.Business.csproj b/BPASmartClient.Business/BPASmartClient.Business.csproj
index c64d8727..0d95c75a 100644
--- a/BPASmartClient.Business/BPASmartClient.Business.csproj
+++ b/BPASmartClient.Business/BPASmartClient.Business.csproj
@@ -8,7 +8,6 @@
-
diff --git a/BPASmartClient.Business/InternetInfo.cs b/BPASmartClient.Business/InternetInfo.cs
index 8f007d09..09634dfa 100644
--- a/BPASmartClient.Business/InternetInfo.cs
+++ b/BPASmartClient.Business/InternetInfo.cs
@@ -7,7 +7,7 @@ using System.Configuration;
using System.IO;
using Microsoft.Extensions.Configuration;
using System.Threading;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Message;
using BPA.ApolloClient;
using BPA.ApolloClient.Options;
diff --git a/BPASmartClient.Business/Plugin/ConfigMgr.cs b/BPASmartClient.Business/Plugin/ConfigMgr.cs
index b24aaf91..c19ff67a 100644
--- a/BPASmartClient.Business/Plugin/ConfigMgr.cs
+++ b/BPASmartClient.Business/Plugin/ConfigMgr.cs
@@ -1,6 +1,6 @@
using BPA.ApolloClient;
using BPA.Message;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Message;
using BPASmartClient.Model;
using Microsoft.Extensions.Configuration;
diff --git a/BPASmartClient.Business/Plugin/DeviceMgr.cs b/BPASmartClient.Business/Plugin/DeviceMgr.cs
index d960924c..d84a8ebf 100644
--- a/BPASmartClient.Business/Plugin/DeviceMgr.cs
+++ b/BPASmartClient.Business/Plugin/DeviceMgr.cs
@@ -1,7 +1,7 @@
using BPA.Message;
using BPASmartClient.Device;
-using BPASmartClient.EventBus;
-using BPASmartClient.Helper;
+
+using BPA.Helper;
using BPASmartClient.Http;
using BPASmartClient.Message;
using BPASmartClient.Model;
diff --git a/BPASmartClient.Business/Plugin/MQTTMgr.cs b/BPASmartClient.Business/Plugin/MQTTMgr.cs
index 1fc625b1..f7c00bcd 100644
--- a/BPASmartClient.Business/Plugin/MQTTMgr.cs
+++ b/BPASmartClient.Business/Plugin/MQTTMgr.cs
@@ -1,5 +1,5 @@
using BPA.Message;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Message;
using BPASmartClient.MQTT;
using HBLConsole.Communication;
diff --git a/BPASmartClient.Business/Plugin/OrderProxy.cs b/BPASmartClient.Business/Plugin/OrderProxy.cs
index 9c436ef9..be39f559 100644
--- a/BPASmartClient.Business/Plugin/OrderProxy.cs
+++ b/BPASmartClient.Business/Plugin/OrderProxy.cs
@@ -3,8 +3,8 @@ using BPA.Message;
using BPA.Message.Enum;
using BPA.Models;
using BPASmartClient.Device;
-using BPASmartClient.EventBus;
-using BPASmartClient.Helper;
+
+using BPA.Helper;
using BPASmartClient.Http;
using BPASmartClient.Message;
using BPASmartClient.Model;
@@ -18,7 +18,7 @@ using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using static BPASmartClient.EventBus.EventBus;
+
namespace BPASmartClient.Business
{
diff --git a/BPASmartClient.Business/Plugin/Plugin.cs b/BPASmartClient.Business/Plugin/Plugin.cs
index 4045b95d..418947e1 100644
--- a/BPASmartClient.Business/Plugin/Plugin.cs
+++ b/BPASmartClient.Business/Plugin/Plugin.cs
@@ -1,4 +1,4 @@
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.Business/Plugin/StatusMgr.cs b/BPASmartClient.Business/Plugin/StatusMgr.cs
index d5295377..e2ad2522 100644
--- a/BPASmartClient.Business/Plugin/StatusMgr.cs
+++ b/BPASmartClient.Business/Plugin/StatusMgr.cs
@@ -1,5 +1,5 @@
using BPA.Message;
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.Business/TopicDefine.cs b/BPASmartClient.Business/TopicDefine.cs
index 38fa60d0..263870a8 100644
--- a/BPASmartClient.Business/TopicDefine.cs
+++ b/BPASmartClient.Business/TopicDefine.cs
@@ -1,7 +1,7 @@
using BPA.Message;
using BPA.Message.Enum;
using BPASmartClient.Device;
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
index a3987b96..fc288dab 100644
--- a/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
+++ b/BPASmartClient.CustomResource/BPASmartClient.CustomResource.csproj
@@ -459,10 +459,9 @@
-
+
-
diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
index e504cf29..d6bd905b 100644
--- a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs
@@ -1,5 +1,5 @@
using BPASmartClient.CustomResource.Pages.ViewModel;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Model;
using System;
using System.Collections.Concurrent;
diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmTest.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmTest.cs
index b7d1bce3..6befd7fd 100644
--- a/BPASmartClient.CustomResource/Pages/Model/AlarmTest.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/AlarmTest.cs
@@ -1,5 +1,5 @@
using BPASmartClient.CustomResource.Pages.ViewModel;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Model;
using System;
using System.Collections.Concurrent;
diff --git a/BPASmartClient.CustomResource/Pages/Model/MessageNotify.cs b/BPASmartClient.CustomResource/Pages/Model/MessageNotify.cs
index b240c0c5..62cb05f1 100644
--- a/BPASmartClient.CustomResource/Pages/Model/MessageNotify.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/MessageNotify.cs
@@ -1,4 +1,4 @@
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/Model/ProductionDataHelper.cs b/BPASmartClient.CustomResource/Pages/Model/ProductionDataHelper.cs
index 8d58cc7b..b7e60029 100644
--- a/BPASmartClient.CustomResource/Pages/Model/ProductionDataHelper.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/ProductionDataHelper.cs
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
using System.Collections.ObjectModel;
using System.Windows;
using System.IO;
-using BPASmartClient.Helper;
+using BPA.Helper;
namespace BPASmartClient.CustomResource.Pages.Model
{
diff --git a/BPASmartClient.CustomResource/Pages/Model/ReportHelper.cs b/BPASmartClient.CustomResource/Pages/Model/ReportHelper.cs
index 701f2e9c..24e733be 100644
--- a/BPASmartClient.CustomResource/Pages/Model/ReportHelper.cs
+++ b/BPASmartClient.CustomResource/Pages/Model/ReportHelper.cs
@@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.ObjectModel;
-using BPASmartClient.Helper;
+using BPA.Helper;
namespace BPASmartClient.CustomResource.Pages.Model
diff --git a/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml.cs b/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml.cs
index 86ccecec..2f54fa16 100644
--- a/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/AddNewUser.xaml.cs
@@ -1,4 +1,4 @@
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/View/LoginView.xaml.cs b/BPASmartClient.CustomResource/Pages/View/LoginView.xaml.cs
index a6cfb8cb..19370ab9 100644
--- a/BPASmartClient.CustomResource/Pages/View/LoginView.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/LoginView.xaml.cs
@@ -1,5 +1,5 @@
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Diagnostics;
diff --git a/BPASmartClient.CustomResource/Pages/View/NfcSetView.xaml.cs b/BPASmartClient.CustomResource/Pages/View/NfcSetView.xaml.cs
index 4f172cb3..e7a11ac1 100644
--- a/BPASmartClient.CustomResource/Pages/View/NfcSetView.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/NfcSetView.xaml.cs
@@ -1,5 +1,5 @@
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/View/PasswordChangeView.xaml.cs b/BPASmartClient.CustomResource/Pages/View/PasswordChangeView.xaml.cs
index 9e8ca1d0..b9f1a438 100644
--- a/BPASmartClient.CustomResource/Pages/View/PasswordChangeView.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/PasswordChangeView.xaml.cs
@@ -1,4 +1,4 @@
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/View/SubPagLoginView.xaml.cs b/BPASmartClient.CustomResource/Pages/View/SubPagLoginView.xaml.cs
index 2d8451b3..472b25bb 100644
--- a/BPASmartClient.CustomResource/Pages/View/SubPagLoginView.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/SubPagLoginView.xaml.cs
@@ -1,5 +1,5 @@
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/View/UserConfigView.xaml.cs b/BPASmartClient.CustomResource/Pages/View/UserConfigView.xaml.cs
index c986e559..820cc790 100644
--- a/BPASmartClient.CustomResource/Pages/View/UserConfigView.xaml.cs
+++ b/BPASmartClient.CustomResource/Pages/View/UserConfigView.xaml.cs
@@ -1,4 +1,4 @@
-using BPASmartClient.Helper;
+using BPA.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/AddNewUserViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/AddNewUserViewModel.cs
index bfa9f346..da67800a 100644
--- a/BPASmartClient.CustomResource/Pages/ViewModel/AddNewUserViewModel.cs
+++ b/BPASmartClient.CustomResource/Pages/ViewModel/AddNewUserViewModel.cs
@@ -1,7 +1,5 @@
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
using BPA.Helper;
-using Microsoft.Toolkit.Mvvm.Input;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -10,7 +8,7 @@ using System.Threading.Tasks;
namespace BPASmartClient.CustomResource.Pages.ViewModel
{
- public class AddNewUserViewModel:NotifyBase
+ public class AddNewUserViewModel : NotifyBase
{
public string ErrorInfo { get { return _mErrorInfo; } set { _mErrorInfo = value; OnPropertyChanged(); } }
private string _mErrorInfo;
@@ -26,9 +24,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
public string NewPassword2 { get { return _mNewPassword2; } set { _mNewPassword2 = value; OnPropertyChanged(); } }
private string _mNewPassword2;
- public RelayCommand ExitCommand { get; set; }
+ public BPARelayCommand ExitCommand { get; set; }
- public RelayCommand ConfirmCommand { get; set; }
+ public BPARelayCommand ConfirmCommand { get; set; }
private void Confirm()
{
@@ -36,9 +34,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
if (NewPassword1 == null) { ErrorInfo = "请输入密码"; return; }
if (NewPassword2 != NewPassword1) { ErrorInfo = "两次密码不一致"; return; }
var res = Global.userManager.userInfos.FirstOrDefault(p => p.UserName == UserName);
- if (res != null) { ErrorInfo = "用户名已存在";return; }
+ if (res != null) { ErrorInfo = "用户名已存在"; return; }
Global.userManager.userInfos.Add(new UserInfo
- {
+ {
UserName = UserName,
Password = NewPassword1,
userTreeViewModels = new List()
@@ -49,12 +47,12 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
public AddNewUserViewModel()
{
- ConfirmCommand = new RelayCommand(Confirm);
+ ConfirmCommand = new BPARelayCommand(Confirm);
- ExitCommand = new RelayCommand(() =>
+ ExitCommand = new BPARelayCommand(() =>
{
ActionManage.GetInstance.Send("AddNewUserViewCancel");
-
+
});
}
}
diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
index 61f1b935..8d2af99e 100644
--- a/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
+++ b/BPASmartClient.CustomResource/Pages/ViewModel/AlarmViewModel.cs
@@ -19,7 +19,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
{
public AlarmViewModel()
{
- ControlCommand = new RelayCommand(() =>
+ ControlCommand = new BPARelayCommand(() =>
{
if (ControlButText == "报警复位")
{
@@ -41,7 +41,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
});
- SwitchCommand = new RelayCommand(() =>
+ SwitchCommand = new BPARelayCommand(() =>
{
if (ButContent == "历史报警")
{
@@ -86,9 +86,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
}
}
- public RelayCommand SwitchCommand { get; set; }
+ public BPARelayCommand SwitchCommand { get; set; }
- public RelayCommand ControlCommand { get; set; }
+ public BPARelayCommand ControlCommand { get; set; }
public Visibility CurrentDataVis { get { return _mCurrentDataVis; } set { _mCurrentDataVis = value; OnPropertyChanged(); } }
diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/LoginViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/LoginViewModel.cs
index c6a728b9..95fa78b3 100644
--- a/BPASmartClient.CustomResource/Pages/ViewModel/LoginViewModel.cs
+++ b/BPASmartClient.CustomResource/Pages/ViewModel/LoginViewModel.cs
@@ -5,7 +5,7 @@ using System.Text;
using System.Threading.Tasks;
using System.Windows;
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPA.Helper;
using Microsoft.Toolkit.Mvvm.Input;
@@ -17,9 +17,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
{
Config.GetInstance.Init();
ActionManage.GetInstance.Register(new Action(() => { Login(); }), "EnterLogin", true);
- LoginCommand = new RelayCommand(() => { Login(); });
+ LoginCommand = new BPARelayCommand(() => { Login(); });
- ExitCommand = new RelayCommand(() =>
+ ExitCommand = new BPARelayCommand(() =>
{
ActionManage.GetInstance.Send("ExitAction");
});
@@ -188,9 +188,9 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
}
}
- public RelayCommand LoginCommand { get; set; }
+ public BPARelayCommand LoginCommand { get; set; }
- public RelayCommand ExitCommand { get; set; }
+ public BPARelayCommand ExitCommand { get; set; }
diff --git a/BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs b/BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs
index adbd9894..4b6336fe 100644
--- a/BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs
+++ b/BPASmartClient.CustomResource/Pages/ViewModel/MainViewModel.cs
@@ -9,7 +9,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using BPASmartClient.CustomResource.Pages.Model;
-using BPASmartClient.Helper;
+using BPA.Helper;
using BPASmartClient.Model;
using BPA.Helper;
using Microsoft.Toolkit.Mvvm.Input;
@@ -20,7 +20,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel
{
public MainViewModel()
{
- NavChangedCommand = new RelayCommand