/// <summary> /// Ribbon 样式的系统操作主窗口。 /// </summary> public XtraRibbonMdiMainForm() { InitializeComponent(); if (MB.Util.General.IsInDesignMode()) { return; } _CommandExecutor = new UICommandExecutor(this); _RejectCommandItems = new Dictionary <DevExpress.XtraBars.BarButtonItem, bool>(); _AllCreateMenuItems = new Dictionary <DevExpress.XtraBars.BarButtonItem, System.ComponentModel.Design.CommandID>(); _ToopTip = new ToolTip(); _ToopTip.SetToolTip(butOpenModule, MODULE_TOOLTIP_MSG); Active_Mdi_Form = this; _ButtonValidatedCatch = new Util.MyDataCache <WinBase.IFace.IViewGridForm, Dictionary <DevExpress.XtraBars.BarButtonItem, bool> >(); MB.WinBase.AppMessenger.DefaultMessenger.Subscribe(MSG_REQUIRE_REFRESH_BUTTONS, refreshToolsButton); MB.WinBase.AppMessenger.DefaultMessenger.Subscribe(DynamicGroupUIHelper.DYNAMIC_GROUP_ACTIVE_MSG_ID, refreshToolsButton); string icon = System.Configuration.ConfigurationManager.AppSettings[APPLICATION_ICON]; if (!string.IsNullOrEmpty(icon)) { bool isShow = true; bool isValue = bool.TryParse(icon, out isShow); if (isValue && !isShow) { this.ribbonControl1.ApplicationIcon = null; } } if (PersonalFavoritesEnable) { dockPanelPersonalFavorites.Show(); } //else dockPanelPersonalFavorites.Close(); }
public EntityXmlSerializer() { _PropertysXmlAtt = new MyDataCache <PropertyInfo, ValueXmlSerializerAttribute>(50, 500); _PropertysIsDataMember = new Dictionary <PropertyInfo, bool>(); }