| | |
| | | using DevExpress.Diagram.Core.Localization; |
| | | using DevExpress.Utils.Localization; |
| | | using DevExpress.XtraEditors; |
| | | |
| | | namespace IStation.Win.Schedule |
| | |
| | | DevExpress.Utils.AppearanceObject.DefaultFont = font; |
| | | |
| | | |
| | | //zh-Hans界面翻译 |
| | | |
| | | //24 |
| | | System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-CN"); |
| | | System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-Hans"); |
| | | System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-Hans"); |
| | | DiagramControlLocalizer.QueryLocalizedString += (sender, e) => |
| | | { |
| | | if (e.StringIDType == typeof(DiagramControlStringId)) |
| | | { |
| | | if ((DiagramControlStringId)e.StringID == DiagramControlStringId.DiagramCommand_QuickPrint) e.Value = "快速打印"; |
| | | if ((DiagramControlStringId)e.StringID == DiagramControlStringId.DiagramCommand_SetPageParameters_PageSize_Header) |
| | | e.Value = "页面设置"; |
| | | } |
| | | |
| | | if ((DiagramControlStringId)e.StringID == DiagramControlStringId.PrintPreview_BestFit) e.Value = "适应页面"; |
| | | }; |
| | | |
| | | ////zh-Hans界面翻译 |
| | | //System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("zh-Hans"); |
| | | //System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("zh-Hans"); |
| | | |
| | | //皮肤 |
| | | DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(DevExpress.LookAndFeel.SkinStyle.WXICompact); |
| | |
| | | // To customize application configuration such as set high DPI settings or default font, |
| | | // see https://aka.ms/applicationconfiguration. |
| | | ApplicationConfiguration.Initialize(); |
| | | // System.Windows.Forms.Application.Run(new frmMain()); |
| | | // System.Windows.Forms.Application.Run(new frmMain()); |
| | | System.Windows.Forms.Application.Run(new bjMain()); |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |