lu
2025-03-26 7cb6753c8a92c562d5258085df0ce5248eb5eefa
DevApp/Gs.DevApp/Program.cs
@@ -2,7 +2,10 @@
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using CefSharp.WinForms;
using CefSharp;
using Gs.DevApp.DevFrm;
using DevExpress.XtraEditors;
namespace Gs.DevApp
{
@@ -36,9 +39,19 @@
        /// </summary>
        private static void _startLogin()
        {
            Application.Run(new TestForm.XtraForm1());
            return;
            //Application.Run(RibbonForm1());
            //return;
            #region 设置默认字体、日期格式、汉化dev
            //DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("宋体", 10);
            //DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont = new System.Drawing.Font("宋体", 10);
            //DevExpress.XtraEditors.WindowsFormsSettings.DefaultMenuFont = new System.Drawing.Font("宋体", 10);
            //DevExpress.XtraEditors.WindowsFormsSettings.DefaultPrintFont = new System.Drawing.Font("宋体", 10);
            #endregion
            CefSettings settings = new CefSettings();
            settings.Locale = "zh-CN";
            Cef.Initialize(settings);
            var fmLogin = new FrmLogin();
            if (fmLogin.IsDisposed == false)
            {