diff --git a/Data/LanguageManager.cs b/Data/LanguageManager.cs
new file mode 100644
index 0000000..3f3050a
--- /dev/null
+++ b/Data/LanguageManager.cs
@@ -0,0 +1,29 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace 睡眠呼吸暂停治疗面罩多功能测试仪.Data
+{
+ public static class LanguageManager
+ {
+ // 私有静态变量,只在首次访问时初始化一次
+ private static readonly string _currentLanguage;
+
+ // 静态构造函数:程序启动时自动执行一次,读取配置
+ static LanguageManager()
+ {
+ // 读取配置文件的Language值,没有的话默认zh-CN
+ _currentLanguage = ConfigurationManager.AppSettings["Language"] ?? "zh-CN";
+ }
+
+ // 对外只读的全局属性,项目任何地方都能直接调用
+ public static string CurrentLanguage => _currentLanguage;
+
+ // 可选:给个更方便的判断属性,不用每次都写==判断
+ public static bool IsEnglish => _currentLanguage == "en-US";
+ public static bool IsChinese => _currentLanguage == "zh-CN";
+ }
+}
diff --git a/Resources/Strings.en-US.xaml b/Resources/Strings.en-US.xaml
index bdbccde..fcdc8ab 100644
--- a/Resources/Strings.en-US.xaml
+++ b/Resources/Strings.en-US.xaml
@@ -141,6 +141,35 @@
Next page
+ Manual interface
+ Manual speed
+ Offline
+ settings
+ Tidal volume coefficient
+ Expiratory flow coefficient
+ Inhalation flow coefficient
+ Pressure coefficient
+ Real-time monitoring parameters
+ Location
+ Pressure
+ Exhalation flow rate
+ Inhalation flow rate
+ Shout up!
+ Hold down
+ Inhale
+ Take a deep breath
+ Manual suction
+ Manual call
+ Reset
+ Control operation
+ Test interface
+ Calibration operation
+ Exhalation calibration
+ Inhalation calibration
+ Pressure calibration
+ Basic parameter settings
+
+
Workstation curve description:
Test Status
Experimental Report
diff --git a/Resources/Strings.zh-CN.xaml b/Resources/Strings.zh-CN.xaml
index 562bbeb..0923184 100644
--- a/Resources/Strings.zh-CN.xaml
+++ b/Resources/Strings.zh-CN.xaml
@@ -140,6 +140,40 @@
上一页
下一页
+
+ 手动界面
+ 手动速度
+ 离线
+ 设置
+ 潮气量系数
+ 呼气流量系数
+ 吸气流量系数
+ 压力系数
+ 实时监测参数
+ 位置
+ 压力
+ 呼气流量
+ 吸气流量
+ 呼上
+ 呼下
+ 吸上
+ 吸下
+ 手动吸
+ 手动呼
+ 复位
+ 控制操作
+ 测试界面
+ 校准操作
+ 呼气校准
+ 吸气校准
+ 压力校准
+ 基础参数设置
+
+
+
+
+
+
定位移测压力
diff --git a/Window6.xaml b/Window6.xaml
index d3b40d1..680ef82 100644
--- a/Window6.xaml
+++ b/Window6.xaml
@@ -2,7 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:oxy="http://oxyplot.org/wpf"
- Title="手动界面" Height="768" Width="1024"
+ Title="{DynamicResource Manual}" Height="768" Width="1024"
WindowStartupLocation="CenterScreen" Loaded="Window_Loaded"
Background="#F5F7FA" >
@@ -92,7 +92,7 @@
-
-
-
+
+
-
+
@@ -134,7 +134,7 @@
-
+
@@ -151,48 +151,45 @@
-
-
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -216,22 +213,22 @@ IsReadOnly="True"
-
+
-
+
-
+
-
+
@@ -251,9 +248,9 @@ IsReadOnly="True"
-
+
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+