From 9be9ba4e159969fb5e32648c2c34e912ccc3ae6d Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 28 三月 2025 14:22:42 +0800 Subject: [PATCH] 优化细节问题 --- WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/ViewMenuDlg.Designer.cs | 332 ++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 218 insertions(+), 114 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/ViewMenuDlg.Designer.cs b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/ViewMenuDlg.Designer.cs index 5def1e9..4127a38 100644 --- a/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/ViewMenuDlg.Designer.cs +++ b/WinFrmUI/HStation.WinFrmUI.Auth.Core/01-menu/ViewMenuDlg.Designer.cs @@ -28,157 +28,261 @@ /// </summary> private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.layoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl(); - this.NameTextEdit = new DevExpress.XtraEditors.TextEdit(); - this.DescriptionMemoEdit = new DevExpress.XtraEditors.MemoEdit(); - this.CodeTextEdit = new DevExpress.XtraEditors.TextEdit(); - this.Root = new DevExpress.XtraLayout.LayoutControlGroup(); - this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); - this.ItemForName = new DevExpress.XtraLayout.LayoutControlItem(); - this.ItemForDescription = new DevExpress.XtraLayout.LayoutControlItem(); - this.ItemForCode = new DevExpress.XtraLayout.LayoutControlItem(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit(); - this.layoutControl1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.NameTextEdit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.DescriptionMemoEdit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.CodeTextEdit.Properties)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForName)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForDescription)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForCode)).BeginInit(); - this.SuspendLayout(); + components = new System.ComponentModel.Container(); + layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); + imageComboBoxMenuType = new DevExpress.XtraEditors.ImageComboBoxEdit(); + layoutControl1 = new DevExpress.XtraDataLayout.DataLayoutControl(); + ComboBoxEditParentsChoice = new DevExpress.XtraEditors.TreeListLookUpEdit(); + treeListLookUpEdit1TreeList = new DevExpress.XtraTreeList.TreeList(); + treeListColumn1 = new DevExpress.XtraTreeList.Columns.TreeListColumn(); + NameTextEdit = new DevExpress.XtraEditors.TextEdit(); + TxtEditPermission = new DevExpress.XtraEditors.TextEdit(); + DescriptionMemoEdit = new DevExpress.XtraEditors.MemoEdit(); + Root = new DevExpress.XtraLayout.LayoutControlGroup(); + layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup(); + ItemForName = new DevExpress.XtraLayout.LayoutControlItem(); + ItemForDescription = new DevExpress.XtraLayout.LayoutControlItem(); + ItemForCode = new DevExpress.XtraLayout.LayoutControlItem(); + layoutControlItem3 = new DevExpress.XtraLayout.LayoutControlItem(); + dxErrorProvider1 = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(components); + ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); + ((System.ComponentModel.ISupportInitialize)imageComboBoxMenuType.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); + layoutControl1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)ComboBoxEditParentsChoice.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)treeListLookUpEdit1TreeList).BeginInit(); + ((System.ComponentModel.ISupportInitialize)NameTextEdit.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)TxtEditPermission.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)DescriptionMemoEdit.Properties).BeginInit(); + ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).BeginInit(); + ((System.ComponentModel.ISupportInitialize)ItemForName).BeginInit(); + ((System.ComponentModel.ISupportInitialize)ItemForDescription).BeginInit(); + ((System.ComponentModel.ISupportInitialize)ItemForCode).BeginInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem3).BeginInit(); + ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).BeginInit(); + SuspendLayout(); + // + // layoutControlItem4 + // + layoutControlItem4.AllowHtmlStringInCaption = true; + layoutControlItem4.Control = imageComboBoxMenuType; + layoutControlItem4.Location = new Point(0, 24); + layoutControlItem4.Name = "layoutControlItem4"; + layoutControlItem4.Size = new Size(418, 24); + layoutControlItem4.Text = "绫诲瀷:"; + layoutControlItem4.TextSize = new Size(28, 14); + // + // imageComboBoxMenuType + // + imageComboBoxMenuType.Location = new Point(52, 36); + imageComboBoxMenuType.Margin = new Padding(3, 2, 3, 2); + imageComboBoxMenuType.Name = "imageComboBoxMenuType"; + imageComboBoxMenuType.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + imageComboBoxMenuType.Properties.ReadOnly = true; + imageComboBoxMenuType.Properties.UseReadOnlyAppearance = false; + imageComboBoxMenuType.Size = new Size(374, 20); + imageComboBoxMenuType.StyleController = layoutControl1; + imageComboBoxMenuType.TabIndex = 3; // // layoutControl1 // - this.layoutControl1.Controls.Add(this.NameTextEdit); - this.layoutControl1.Controls.Add(this.DescriptionMemoEdit); - this.layoutControl1.Controls.Add(this.CodeTextEdit); - this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.layoutControl1.Location = new System.Drawing.Point(0, 0); - this.layoutControl1.Name = "layoutControl1"; - this.layoutControl1.OptionsView.IsReadOnly = DevExpress.Utils.DefaultBoolean.True; - this.layoutControl1.Root = this.Root; - this.layoutControl1.Size = new System.Drawing.Size(501, 370); - this.layoutControl1.TabIndex = 0; - this.layoutControl1.Text = "dataLayoutControl1"; + layoutControl1.Controls.Add(ComboBoxEditParentsChoice); + layoutControl1.Controls.Add(NameTextEdit); + layoutControl1.Controls.Add(TxtEditPermission); + layoutControl1.Controls.Add(DescriptionMemoEdit); + layoutControl1.Controls.Add(imageComboBoxMenuType); + layoutControl1.Dock = DockStyle.Fill; + layoutControl1.Location = new Point(0, 0); + layoutControl1.Margin = new Padding(3, 1, 3, 1); + layoutControl1.Name = "layoutControl1"; + layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new Rectangle(760, 110, 650, 400); + layoutControl1.Root = Root; + layoutControl1.Size = new Size(438, 273); + layoutControl1.TabIndex = 1; + layoutControl1.Text = "dataLayoutControl1"; + // + // ComboBoxEditParentsChoice + // + ComboBoxEditParentsChoice.Location = new Point(52, 60); + ComboBoxEditParentsChoice.Margin = new Padding(3, 2, 3, 2); + ComboBoxEditParentsChoice.Name = "ComboBoxEditParentsChoice"; + ComboBoxEditParentsChoice.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); + ComboBoxEditParentsChoice.Properties.DisplayMember = "Name"; + ComboBoxEditParentsChoice.Properties.NullText = ""; + ComboBoxEditParentsChoice.Properties.PopupSizeable = false; + ComboBoxEditParentsChoice.Properties.ReadOnly = true; + ComboBoxEditParentsChoice.Properties.TreeList = treeListLookUpEdit1TreeList; + ComboBoxEditParentsChoice.Properties.UseReadOnlyAppearance = false; + ComboBoxEditParentsChoice.Properties.ValueMember = "ID"; + ComboBoxEditParentsChoice.Size = new Size(374, 20); + ComboBoxEditParentsChoice.StyleController = layoutControl1; + ComboBoxEditParentsChoice.TabIndex = 4; + // + // treeListLookUpEdit1TreeList + // + treeListLookUpEdit1TreeList.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { treeListColumn1 }); + treeListLookUpEdit1TreeList.Location = new Point(0, 36); + treeListLookUpEdit1TreeList.MinWidth = 17; + treeListLookUpEdit1TreeList.Name = "treeListLookUpEdit1TreeList"; + treeListLookUpEdit1TreeList.OptionsView.ShowIndentAsRowStyle = true; + treeListLookUpEdit1TreeList.Size = new Size(400, 200); + treeListLookUpEdit1TreeList.TabIndex = 0; + treeListLookUpEdit1TreeList.TreeLevelWidth = 16; + treeListLookUpEdit1TreeList.ViewStyle = DevExpress.XtraTreeList.TreeListViewStyle.TreeView; + // + // treeListColumn1 + // + treeListColumn1.Caption = "treeListColumn1"; + treeListColumn1.FieldName = "Name"; + treeListColumn1.MinWidth = 17; + treeListColumn1.Name = "treeListColumn1"; + treeListColumn1.Visible = true; + treeListColumn1.VisibleIndex = 0; + treeListColumn1.Width = 66; // // NameTextEdit // - this.NameTextEdit.Location = new System.Drawing.Point(46, 12); - this.NameTextEdit.Name = "NameTextEdit"; - this.NameTextEdit.Properties.ReadOnly = true; - this.NameTextEdit.Properties.UseReadOnlyAppearance = false; - this.NameTextEdit.Size = new System.Drawing.Size(201, 26); - this.NameTextEdit.StyleController = this.layoutControl1; - this.NameTextEdit.TabIndex = 4; + NameTextEdit.Location = new Point(52, 12); + NameTextEdit.Margin = new Padding(3, 1, 3, 1); + NameTextEdit.Name = "NameTextEdit"; + NameTextEdit.Properties.ReadOnly = true; + NameTextEdit.Properties.UseReadOnlyAppearance = false; + NameTextEdit.Size = new Size(165, 20); + NameTextEdit.StyleController = layoutControl1; + NameTextEdit.TabIndex = 0; + // + // TxtEditPermission + // + TxtEditPermission.Location = new Point(261, 12); + TxtEditPermission.Margin = new Padding(3, 1, 3, 1); + TxtEditPermission.Name = "TxtEditPermission"; + TxtEditPermission.Properties.ReadOnly = true; + TxtEditPermission.Properties.UseReadOnlyAppearance = false; + TxtEditPermission.Size = new Size(165, 20); + TxtEditPermission.StyleController = layoutControl1; + TxtEditPermission.TabIndex = 2; // // DescriptionMemoEdit // - this.DescriptionMemoEdit.Location = new System.Drawing.Point(46, 42); - this.DescriptionMemoEdit.Name = "DescriptionMemoEdit"; - this.DescriptionMemoEdit.Properties.ReadOnly = true; - this.DescriptionMemoEdit.Properties.UseReadOnlyAppearance = false; - this.DescriptionMemoEdit.Size = new System.Drawing.Size(443, 316); - this.DescriptionMemoEdit.StyleController = this.layoutControl1; - this.DescriptionMemoEdit.TabIndex = 13; - // - // CodeTextEdit - // - this.CodeTextEdit.Location = new System.Drawing.Point(285, 12); - this.CodeTextEdit.Name = "CodeTextEdit"; - this.CodeTextEdit.Properties.ReadOnly = true; - this.CodeTextEdit.Properties.UseReadOnlyAppearance = false; - this.CodeTextEdit.Size = new System.Drawing.Size(204, 26); - this.CodeTextEdit.StyleController = this.layoutControl1; - this.CodeTextEdit.TabIndex = 15; + DescriptionMemoEdit.Location = new Point(52, 84); + DescriptionMemoEdit.Margin = new Padding(3, 1, 3, 1); + DescriptionMemoEdit.Name = "DescriptionMemoEdit"; + DescriptionMemoEdit.Properties.ReadOnly = true; + DescriptionMemoEdit.Properties.UseReadOnlyAppearance = false; + DescriptionMemoEdit.Size = new Size(374, 177); + DescriptionMemoEdit.StyleController = layoutControl1; + DescriptionMemoEdit.TabIndex = 5; // // Root // - this.Root.AppearanceItemCaption.Options.UseTextOptions = true; - this.Root.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; - this.Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; - this.Root.GroupBordersVisible = false; - this.Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.layoutControlGroup1}); - this.Root.Name = "Root"; - this.Root.Size = new System.Drawing.Size(501, 370); - this.Root.TextVisible = false; + Root.AppearanceItemCaption.Options.UseTextOptions = true; + Root.AppearanceItemCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Far; + Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True; + Root.GroupBordersVisible = false; + Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { layoutControlGroup1 }); + Root.Name = "Root"; + Root.Size = new Size(438, 273); + Root.TextVisible = false; // // layoutControlGroup1 // - this.layoutControlGroup1.AllowDrawBackground = false; - this.layoutControlGroup1.GroupBordersVisible = false; - this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { - this.ItemForName, - this.ItemForDescription, - this.ItemForCode}); - this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0); - this.layoutControlGroup1.Name = "autoGeneratedGroup0"; - this.layoutControlGroup1.Size = new System.Drawing.Size(481, 350); + layoutControlGroup1.AllowDrawBackground = false; + layoutControlGroup1.GroupBordersVisible = false; + layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { ItemForName, ItemForDescription, ItemForCode, layoutControlItem3, layoutControlItem4 }); + layoutControlGroup1.Location = new Point(0, 0); + layoutControlGroup1.Name = "autoGeneratedGroup0"; + layoutControlGroup1.Size = new Size(418, 253); // // ItemForName // - this.ItemForName.Control = this.NameTextEdit; - this.ItemForName.Location = new System.Drawing.Point(0, 0); - this.ItemForName.Name = "ItemForName"; - this.ItemForName.Size = new System.Drawing.Size(239, 30); - this.ItemForName.Text = "鍚嶇О:"; - this.ItemForName.TextSize = new System.Drawing.Size(31, 19); + ItemForName.AllowHtmlStringInCaption = true; + ItemForName.Control = NameTextEdit; + ItemForName.Location = new Point(0, 0); + ItemForName.Name = "ItemForName"; + ItemForName.Size = new Size(209, 24); + ItemForName.Text = "鍚嶇О:"; + ItemForName.TextSize = new Size(28, 14); // // ItemForDescription // - this.ItemForDescription.Control = this.DescriptionMemoEdit; - this.ItemForDescription.Location = new System.Drawing.Point(0, 30); - this.ItemForDescription.Name = "ItemForDescription"; - this.ItemForDescription.Size = new System.Drawing.Size(481, 320); - this.ItemForDescription.StartNewLine = true; - this.ItemForDescription.Text = "澶囨敞:"; - this.ItemForDescription.TextSize = new System.Drawing.Size(31, 19); + ItemForDescription.Control = DescriptionMemoEdit; + ItemForDescription.Location = new Point(0, 72); + ItemForDescription.Name = "ItemForDescription"; + ItemForDescription.Size = new Size(418, 181); + ItemForDescription.StartNewLine = true; + ItemForDescription.Text = "澶囨敞:"; + ItemForDescription.TextSize = new Size(28, 14); // // ItemForCode // - this.ItemForCode.Control = this.CodeTextEdit; - this.ItemForCode.Location = new System.Drawing.Point(239, 0); - this.ItemForCode.Name = "ItemForCode"; - this.ItemForCode.Size = new System.Drawing.Size(242, 30); - this.ItemForCode.Text = "缂栫爜:"; - this.ItemForCode.TextSize = new System.Drawing.Size(31, 19); + ItemForCode.AllowHtmlStringInCaption = true; + ItemForCode.Control = TxtEditPermission; + ItemForCode.Location = new Point(209, 0); + ItemForCode.Name = "ItemForCode"; + ItemForCode.Size = new Size(209, 24); + ItemForCode.Text = "鏍囪瘑:"; + ItemForCode.TextSize = new Size(28, 14); + // + // layoutControlItem3 + // + layoutControlItem3.Control = ComboBoxEditParentsChoice; + layoutControlItem3.Location = new Point(0, 48); + layoutControlItem3.Name = "layoutControlItem3"; + layoutControlItem3.Size = new Size(418, 24); + layoutControlItem3.Text = "鐖剁骇:"; + layoutControlItem3.TextSize = new Size(28, 14); + // + // dxErrorProvider1 + // + dxErrorProvider1.ContainerControl = this; // // ViewMenuDlg // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 19F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(501, 370); - this.Controls.Add(this.layoutControl1); - this.Name = "ViewMenuDlg"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "鑿滃崟璇︾粏淇℃伅"; - ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit(); - this.layoutControl1.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.NameTextEdit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.DescriptionMemoEdit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.CodeTextEdit.Properties)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForName)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForDescription)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.ItemForCode)).EndInit(); - this.ResumeLayout(false); - + AutoScaleDimensions = new SizeF(7F, 14F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(438, 273); + Controls.Add(layoutControl1); + Margin = new Padding(3, 2, 3, 2); + Name = "ViewMenuDlg"; + StartPosition = FormStartPosition.CenterParent; + Text = "璇︾粏淇℃伅"; + ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); + ((System.ComponentModel.ISupportInitialize)imageComboBoxMenuType.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); + layoutControl1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)ComboBoxEditParentsChoice.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)treeListLookUpEdit1TreeList).EndInit(); + ((System.ComponentModel.ISupportInitialize)NameTextEdit.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)TxtEditPermission.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)DescriptionMemoEdit.Properties).EndInit(); + ((System.ComponentModel.ISupportInitialize)Root).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlGroup1).EndInit(); + ((System.ComponentModel.ISupportInitialize)ItemForName).EndInit(); + ((System.ComponentModel.ISupportInitialize)ItemForDescription).EndInit(); + ((System.ComponentModel.ISupportInitialize)ItemForCode).EndInit(); + ((System.ComponentModel.ISupportInitialize)layoutControlItem3).EndInit(); + ((System.ComponentModel.ISupportInitialize)dxErrorProvider1).EndInit(); + ResumeLayout(false); } #endregion + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4; + private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxMenuType; private DevExpress.XtraDataLayout.DataLayoutControl layoutControl1; - private DevExpress.XtraLayout.LayoutControlGroup Root; + private DevExpress.XtraEditors.TreeListLookUpEdit ComboBoxEditParentsChoice; + private DevExpress.XtraTreeList.TreeList treeListLookUpEdit1TreeList; + private DevExpress.XtraTreeList.Columns.TreeListColumn treeListColumn1; private DevExpress.XtraEditors.TextEdit NameTextEdit; + private DevExpress.XtraEditors.TextEdit TxtEditPermission; private DevExpress.XtraEditors.MemoEdit DescriptionMemoEdit; + private DevExpress.XtraLayout.LayoutControlGroup Root; private DevExpress.XtraLayout.LayoutControlGroup layoutControlGroup1; private DevExpress.XtraLayout.LayoutControlItem ItemForName; private DevExpress.XtraLayout.LayoutControlItem ItemForDescription; - private DevExpress.XtraEditors.TextEdit CodeTextEdit; private DevExpress.XtraLayout.LayoutControlItem ItemForCode; + private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; + private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider dxErrorProvider1; } } \ No newline at end of file -- Gitblit v1.9.3