From ac335160a9de2394c7c3b21ca84ce9a4e88d70e9 Mon Sep 17 00:00:00 2001 From: wenjy Date: Sat, 18 Mar 2023 09:51:42 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=8F=82=E6=95=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=A2=9E=E5=8A=A0=E7=82=B9=E5=87=BB=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MaterialTraceabilityUI/MainWindow.xaml.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/MaterialTraceabilityUI/MainWindow.xaml.cs b/MaterialTraceabilityUI/MainWindow.xaml.cs index 9b2bb94..f6a0d39 100644 --- a/MaterialTraceabilityUI/MainWindow.xaml.cs +++ b/MaterialTraceabilityUI/MainWindow.xaml.cs @@ -271,15 +271,14 @@ namespace MaterialTraceabilityUI /// private void ConfigPage_Click(object sender, RoutedEventArgs e) { - //if (!"2".Equals(ConfigHelper.GetConfig("roleId"))) - //{ - // System.Windows.MessageBox.Show("请登录系统管理账号进行操作"); - //} - //else - //{ - // UserContent = configInfo; - //} - UserContent = configInfo; + if (!"2".Equals(ConfigHelper.GetConfig("roleId"))) + { + System.Windows.MessageBox.Show("请登录系统管理账号进行操作"); + } + else + { + UserContent = configInfo; + } } public System.Windows.Controls.UserControl _content;