提交rbac
提交设置右键错位的bug
This commit is contained in:
@ -2,12 +2,18 @@
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
using AntdUI;
|
||||
using DH.Commons.Base;
|
||||
using DH.Commons.Enums;
|
||||
using DH.Commons.Helper;
|
||||
using DH.Commons.Models;
|
||||
using DH.RBAC.Common;
|
||||
using DH.RBAC.Logic.Base;
|
||||
using DH.RBAC.Utility.Extension;
|
||||
using DH.RBAC.Utility.Other;
|
||||
using DHSoftware.Utils;
|
||||
using DHSoftware.Views;
|
||||
using Microsoft.VisualBasic.Logging;
|
||||
using GlobalConfig = DH.RBAC.Common.GlobalConfig;
|
||||
|
||||
namespace DHSoftware
|
||||
{
|
||||
@ -40,14 +46,24 @@ namespace DHSoftware
|
||||
UpdateStep(10, "正在加载数据库", true);
|
||||
try
|
||||
{
|
||||
DatabaseUtil.InitializeDatabase();
|
||||
MyConfig config = File.ReadAllText(MyEnvironment.RootPath("Configs/config.json")).ToObject<MyConfig>();
|
||||
GlobalConfig.Config = config;
|
||||
string message = "";
|
||||
bool flag = BaseLogic.InitDB(config.DbType, config.DbHost, config.DbName, config.DbUserName, config.DbPassword, ref message);
|
||||
if (!flag)
|
||||
{
|
||||
Console.Write(message);
|
||||
return;
|
||||
}
|
||||
//DatabaseUtil.InitializeDatabase();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
SystemModel.CurrentStatus = EnumStatus.异常;
|
||||
Modal.open(WelcomeWindow.Instance, "错误!", ex.ToString(), TType.Error);
|
||||
SystemModel.CurrentStatus = EnumStatus.异常;
|
||||
Modal.open(WelcomeWindow.Instance, "错误!", ex.ToString(), TType.Error);
|
||||
}
|
||||
|
||||
|
||||
|
||||
UpdateStep(30, "正在加载解决方案", true);
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user