更新日志问题

This commit is contained in:
Colin 2023-08-30 16:37:57 +08:00
parent 8d13f2ea3c
commit 979fb62063
2 changed files with 7 additions and 2 deletions

View File

@ -3,9 +3,11 @@ using AIMS.OperationAanesthesia;
using AIMSBLL; using AIMSBLL;
using AIMSExtension; using AIMSExtension;
using AIMSModel; using AIMSModel;
using DCSoftDotfuscate;
using DevComponents.DotNetBar; using DevComponents.DotNetBar;
using DevComponents.DotNetBar.Metro.ColorTables; using DevComponents.DotNetBar.Metro.ColorTables;
using DocumentManagement; using DocumentManagement;
using Microsoft.Extensions.Logging;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Data; using System.Data;
@ -19,8 +21,10 @@ namespace AIMS
{ {
public partial class FormMainManage : Office2007Form public partial class FormMainManage : Office2007Form
{ {
ILogger<FormMainManage> logger = null;
public FormMainManage() public FormMainManage()
{ {
logger = this.GetLogger();
InitializeComponent(); InitializeComponent();
Control.CheckForIllegalCrossThreadCalls = false; Control.CheckForIllegalCrossThreadCalls = false;
//Task.Factory.StartNew(() => { PreLoad(); }); //Task.Factory.StartNew(() => { PreLoad(); });
@ -96,7 +100,6 @@ namespace AIMS
eStyle style = (eStyle)comboBoxEx1.SelectedItem; eStyle style = (eStyle)comboBoxEx1.SelectedItem;
if (styleManager1.ManagerStyle != style) if (styleManager1.ManagerStyle != style)
styleManager1.ManagerStyle = style; styleManager1.ManagerStyle = style;
styleManager1.MetroColorParameters = MetroColorGeneratorParameters.Cherry;
} }
private void comboBoxEx2_SelectedIndexChanged(object sender, EventArgs e) private void comboBoxEx2_SelectedIndexChanged(object sender, EventArgs e)
{ {
@ -364,11 +367,13 @@ namespace AIMS
frm.WindowState = FormWindowState.Maximized; frm.WindowState = FormWindowState.Maximized;
sideNavItem.Panel.Controls.Clear(); sideNavItem.Panel.Controls.Clear();
sideNavItem.Panel.Controls.Add(frm); sideNavItem.Panel.Controls.Add(frm);
frm.Show(); frm.Show();
frm.BringToFront(); frm.BringToFront();
} }
catch (Exception) catch (Exception ex)
{ {
logger.LogError(ex,"打开窗体时出错:@Menu",menu);
if (path.Contains("MainFormManage")) if (path.Contains("MainFormManage"))
{ {
MainFormManage frm = new MainFormManage(); MainFormManage frm = new MainFormManage();

Binary file not shown.