diff --git a/BPA.WeimoCube.sln b/BPA.WeimoCube.sln
index cbf975c..a8f7b83 100644
--- a/BPA.WeimoCube.sln
+++ b/BPA.WeimoCube.sln
@@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34607.119
MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BPA.WeimoCube", "BPA.WeimoCube\BPA.WeimoCube.csproj", "{2BB3F0FF-6FBD-45EC-9111-DA96D58DDC72}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BPA.WeimoCube", "BPA.WeimoCube\BPA.WeimoCube.csproj", "{2BB3F0FF-6FBD-45EC-9111-DA96D58DDC72}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CommcationLibray", "CommcationLibray\CommcationLibray.csproj", "{19E2F031-486A-40C2-9EC5-9158F90F74FD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -15,6 +17,10 @@ Global
{2BB3F0FF-6FBD-45EC-9111-DA96D58DDC72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2BB3F0FF-6FBD-45EC-9111-DA96D58DDC72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2BB3F0FF-6FBD-45EC-9111-DA96D58DDC72}.Release|Any CPU.Build.0 = Release|Any CPU
+ {19E2F031-486A-40C2-9EC5-9158F90F74FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {19E2F031-486A-40C2-9EC5-9158F90F74FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {19E2F031-486A-40C2-9EC5-9158F90F74FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {19E2F031-486A-40C2-9EC5-9158F90F74FD}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/BPA.WeimoCube/App.xaml b/BPA.WeimoCube/App.xaml
index 624cd45..b08636f 100644
--- a/BPA.WeimoCube/App.xaml
+++ b/BPA.WeimoCube/App.xaml
@@ -2,8 +2,11 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:BPA.WeimoCube"
- StartupUri="MainWindow.xaml">
-
-
-
+ xmlns:vm="clr-namespace:BPA.WeimoCube.ViewModels"
+ StartupUri="Views/MainWindow.xaml">
+
+
+
+
+
diff --git a/BPA.WeimoCube/Assets/Fonts/digital_display.ttf b/BPA.WeimoCube/Assets/Fonts/digital_display.ttf
new file mode 100644
index 0000000..a006032
Binary files /dev/null and b/BPA.WeimoCube/Assets/Fonts/digital_display.ttf differ
diff --git a/BPA.WeimoCube/Assets/Fonts/iconfont.ttf b/BPA.WeimoCube/Assets/Fonts/iconfont.ttf
new file mode 100644
index 0000000..eb3e545
Binary files /dev/null and b/BPA.WeimoCube/Assets/Fonts/iconfont.ttf differ
diff --git a/BPA.WeimoCube/Assets/Images/logo.png b/BPA.WeimoCube/Assets/Images/logo.png
new file mode 100644
index 0000000..ce78871
Binary files /dev/null and b/BPA.WeimoCube/Assets/Images/logo.png differ
diff --git a/BPA.WeimoCube/Assets/Styles/ComboBoxStyles.xaml b/BPA.WeimoCube/Assets/Styles/ComboBoxStyles.xaml
new file mode 100644
index 0000000..56ef060
--- /dev/null
+++ b/BPA.WeimoCube/Assets/Styles/ComboBoxStyles.xaml
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/BPA.WeimoCube/BPA.WeimoCube.csproj b/BPA.WeimoCube/BPA.WeimoCube.csproj
index 18b9a12..ca14e23 100644
--- a/BPA.WeimoCube/BPA.WeimoCube.csproj
+++ b/BPA.WeimoCube/BPA.WeimoCube.csproj
@@ -6,6 +6,30 @@
enable
enable
true
+ True
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BPA.WeimoCube/Common/Command.cs b/BPA.WeimoCube/Common/Command.cs
new file mode 100644
index 0000000..1c0718b
--- /dev/null
+++ b/BPA.WeimoCube/Common/Command.cs
@@ -0,0 +1,38 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Input;
+
+namespace BPA.WeimoCube.Common
+{
+ ///
+ /// 绑定事件
+ ///
+ public class Command : ICommand
+ {
+ public event EventHandler? CanExecuteChanged;
+
+ public bool CanExecute(object? parameter)
+ {
+ if (DoCanExecute == null) return true;
+ return DoCanExecute.Invoke(parameter);
+ }
+
+ public void Execute(object? parameter)
+ {
+ DoExecute?.Invoke(parameter);
+ }
+
+ public Action