diff --git a/Program.cs b/Program.cs index 3e18fb5..90e1a7e 100644 --- a/Program.cs +++ b/Program.cs @@ -57,7 +57,17 @@ { if (Utility.userRole != null) { - Application.Run(new MainFrm()); + try + { + // 登陆 + LogManager.saveLog(Utility.userName, "登陆"); + Application.Run(new MainFrm()); + + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } } else {