diff --git a/App.xaml b/App.xaml index 77e5345..d966156 100644 --- a/App.xaml +++ b/App.xaml @@ -1,7 +1,8 @@  diff --git a/App.xaml.cs b/App.xaml.cs index a442956..26d0ccd 100644 --- a/App.xaml.cs +++ b/App.xaml.cs @@ -1,4 +1,4 @@ -using DyeingComputer.UserClass; +using SunlightCentralizedControlManagement_SCCM_.UserClass; using LiveChartsCore; using LiveChartsCore.SkiaSharpView; using SkiaSharp; @@ -22,6 +22,10 @@ namespace SunlightCentralizedControlManagement_SCCM_ /// public partial class App : Application { + /// + ///公共变量来自Login的用户名 + /// + public static string USER_Purview { get; set; } private static Assembly OnResolveAssembly(object sender, ResolveEventArgs args) { Assembly executingAssembly = Assembly.GetExecutingAssembly(); @@ -119,10 +123,10 @@ namespace SunlightCentralizedControlManagement_SCCM_ { MessageBox.Show("发生了一个无法处理的错误!请联系SUNLIGHT处理!" + "(1)错误" + Environment.NewLine - // + "(2)错误源:" + e.Exception.InnerException.Source + Environment.NewLine + + "(2)错误源:" + e.Exception.InnerException.Source + Environment.NewLine + "(3)错误信息:" + e.Exception.Message + Environment.NewLine - // + "(4)详细信息:" + e.Exception.InnerException.Message + Environment.NewLine - // + "(5)报错区域:" + e.Exception.InnerException.StackTrace + + "(4)详细信息:" + e.Exception.InnerException.Message + Environment.NewLine + + "(5)报错区域:" + e.Exception.InnerException.StackTrace ); } @@ -169,7 +173,8 @@ namespace SunlightCentralizedControlManagement_SCCM_ /// private void Application_Startup(object sender, StartupEventArgs e) { - Application.Current.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative);//和MainWindwo同一目录 + // Application.Current.StartupUri = new Uri("Login.xaml", UriKind.Relative); + Current.StartupUri = new Uri("MainWindow.xaml", UriKind.Relative);//和MainWindwo同一目录 } public static class SystemSleepTool diff --git a/Login.xaml b/Login.xaml new file mode 100644 index 0000000..f60fb42 --- /dev/null +++ b/Login.xaml @@ -0,0 +1,27 @@ + + + + + + + + + + + +