duheng
2025-03-18 0dcff1805b3143dd1c2a25d604afdd724b452803
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
namespace Yw.WinFrmUI
{
    partial class HydroPumpListStateEditCtrl
    {
        /// <summary> 
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary> 
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region Component Designer generated code
 
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();
            DevExpress.Utils.SimpleContextButton simpleContextButton1 = new DevExpress.Utils.SimpleContextButton();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(HydroPumpListStateEditCtrl));
            DevExpress.XtraEditors.TableLayout.ItemTemplateBase itemTemplateBase1 = new DevExpress.XtraEditors.TableLayout.ItemTemplateBase();
            DevExpress.XtraEditors.TableLayout.TableColumnDefinition tableColumnDefinition1 = new DevExpress.XtraEditors.TableLayout.TableColumnDefinition();
            DevExpress.XtraEditors.TableLayout.TableColumnDefinition tableColumnDefinition2 = new DevExpress.XtraEditors.TableLayout.TableColumnDefinition();
            DevExpress.XtraEditors.TableLayout.TableColumnDefinition tableColumnDefinition3 = new DevExpress.XtraEditors.TableLayout.TableColumnDefinition();
            DevExpress.XtraEditors.TableLayout.TemplatedItemElement templatedItemElement1 = new DevExpress.XtraEditors.TableLayout.TemplatedItemElement();
            DevExpress.XtraEditors.TableLayout.TemplatedItemElement templatedItemElement2 = new DevExpress.XtraEditors.TableLayout.TemplatedItemElement();
            DevExpress.XtraEditors.TableLayout.TemplatedItemElement templatedItemElement3 = new DevExpress.XtraEditors.TableLayout.TemplatedItemElement();
            DevExpress.XtraEditors.TableLayout.TableRowDefinition tableRowDefinition1 = new DevExpress.XtraEditors.TableLayout.TableRowDefinition();
            hydroPumpListItemStateViewModelBindingSource = new BindingSource(components);
            imageListBoxControl1 = new DevExpress.XtraEditors.ImageListBoxControl();
            layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            imageComboBoxEdit1 = new DevExpress.XtraEditors.ImageComboBoxEdit();
            Root = new DevExpress.XtraLayout.LayoutControlGroup();
            itemForList = new DevExpress.XtraLayout.LayoutControlItem();
            itemForGroup = new DevExpress.XtraLayout.LayoutControlItem();
            ((ISupportInitialize)hydroPumpListItemStateViewModelBindingSource).BeginInit();
            ((ISupportInitialize)imageListBoxControl1).BeginInit();
            ((ISupportInitialize)layoutControl1).BeginInit();
            layoutControl1.SuspendLayout();
            ((ISupportInitialize)imageComboBoxEdit1.Properties).BeginInit();
            ((ISupportInitialize)Root).BeginInit();
            ((ISupportInitialize)itemForList).BeginInit();
            ((ISupportInitialize)itemForGroup).BeginInit();
            SuspendLayout();
            // 
            // hydroPumpListItemStateViewModelBindingSource
            // 
            hydroPumpListItemStateViewModelBindingSource.DataSource = typeof(HydroPumpListItemStateViewModel);
            // 
            // imageListBoxControl1
            // 
            simpleContextButton1.AlignmentOptions.Panel = DevExpress.Utils.ContextItemPanel.Center;
            simpleContextButton1.AlignmentOptions.Position = DevExpress.Utils.ContextItemPosition.Far;
            simpleContextButton1.Id = new Guid("ee22239a-6899-40f3-bbe4-7a30d39c9f1d");
            simpleContextButton1.ImageOptionsCollection.ItemNormal.SvgImage = (DevExpress.Utils.Svg.SvgImage)resources.GetObject("resource.SvgImage");
            simpleContextButton1.ImageOptionsCollection.ItemNormal.SvgImageSize = new Size(24, 24);
            simpleContextButton1.Name = "simpleContextButton1";
            simpleContextButton1.ToolTip = "设置";
            imageListBoxControl1.ContextButtons.Add(simpleContextButton1);
            imageListBoxControl1.DataSource = hydroPumpListItemStateViewModelBindingSource;
            imageListBoxControl1.ItemHeight = 34;
            imageListBoxControl1.Location = new Point(0, 21);
            imageListBoxControl1.Name = "imageListBoxControl1";
            imageListBoxControl1.Size = new Size(261, 652);
            imageListBoxControl1.StyleController = layoutControl1;
            imageListBoxControl1.TabIndex = 0;
            tableColumnDefinition1.Length.Type = DevExpress.XtraEditors.TableLayout.TableDefinitionLengthType.Pixel;
            tableColumnDefinition1.Length.Value = 40D;
            tableColumnDefinition2.Length.Value = 210D;
            tableColumnDefinition3.Length.Type = DevExpress.XtraEditors.TableLayout.TableDefinitionLengthType.Pixel;
            tableColumnDefinition3.Length.Value = 80D;
            itemTemplateBase1.Columns.Add(tableColumnDefinition1);
            itemTemplateBase1.Columns.Add(tableColumnDefinition2);
            itemTemplateBase1.Columns.Add(tableColumnDefinition3);
            templatedItemElement1.FieldName = "Image";
            templatedItemElement1.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement1.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement1.ImageOptions.ImageSize = new Size(32, 32);
            templatedItemElement1.Text = "Image";
            templatedItemElement1.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement2.ColumnIndex = 1;
            templatedItemElement2.FieldName = "Name";
            templatedItemElement2.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement2.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement2.Text = "Name";
            templatedItemElement2.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleLeft;
            templatedItemElement2.TextLocation = new Point(10, 0);
            templatedItemElement3.ColumnIndex = 2;
            templatedItemElement3.FieldName = "CurrentHz";
            templatedItemElement3.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement3.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement3.Text = "CurrentHz";
            templatedItemElement3.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleLeft;
            itemTemplateBase1.Elements.Add(templatedItemElement1);
            itemTemplateBase1.Elements.Add(templatedItemElement2);
            itemTemplateBase1.Elements.Add(templatedItemElement3);
            itemTemplateBase1.Name = "template1";
            itemTemplateBase1.Rows.Add(tableRowDefinition1);
            imageListBoxControl1.Templates.Add(itemTemplateBase1);
            imageListBoxControl1.SelectedValueChanged += imageListBoxControl1_SelectedValueChanged;
            imageListBoxControl1.ContextButtonClick += imageListBoxControl1_ContextButtonClick;
            // 
            // layoutControl1
            // 
            layoutControl1.Controls.Add(imageComboBoxEdit1);
            layoutControl1.Controls.Add(imageListBoxControl1);
            layoutControl1.Dock = DockStyle.Fill;
            layoutControl1.Location = new Point(0, 0);
            layoutControl1.Name = "layoutControl1";
            layoutControl1.Root = Root;
            layoutControl1.Size = new Size(261, 673);
            layoutControl1.TabIndex = 1;
            layoutControl1.Text = "layoutControl1";
            // 
            // imageComboBoxEdit1
            // 
            imageComboBoxEdit1.Location = new Point(0, 0);
            imageComboBoxEdit1.Name = "imageComboBoxEdit1";
            imageComboBoxEdit1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) });
            imageComboBoxEdit1.Size = new Size(261, 20);
            imageComboBoxEdit1.StyleController = layoutControl1;
            imageComboBoxEdit1.TabIndex = 4;
            imageComboBoxEdit1.SelectedValueChanged += imageComboBoxEdit1_SelectedValueChanged;
            // 
            // Root
            // 
            Root.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            Root.GroupBordersVisible = false;
            Root.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] { itemForList, itemForGroup });
            Root.Name = "Root";
            Root.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            Root.Size = new Size(261, 673);
            Root.TextVisible = false;
            // 
            // itemForList
            // 
            itemForList.Control = imageListBoxControl1;
            itemForList.Location = new Point(0, 21);
            itemForList.Name = "itemForList";
            itemForList.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            itemForList.Size = new Size(261, 652);
            itemForList.TextSize = new Size(0, 0);
            itemForList.TextVisible = false;
            // 
            // itemForGroup
            // 
            itemForGroup.Control = imageComboBoxEdit1;
            itemForGroup.Location = new Point(0, 0);
            itemForGroup.Name = "itemForGroup";
            itemForGroup.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 1);
            itemForGroup.Size = new Size(261, 21);
            itemForGroup.Text = "分组:";
            itemForGroup.TextSize = new Size(0, 0);
            itemForGroup.TextVisible = false;
            // 
            // HydroPumpListStateEditCtrl
            // 
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(layoutControl1);
            Name = "HydroPumpListStateEditCtrl";
            Size = new Size(261, 673);
            ((ISupportInitialize)hydroPumpListItemStateViewModelBindingSource).EndInit();
            ((ISupportInitialize)imageListBoxControl1).EndInit();
            ((ISupportInitialize)layoutControl1).EndInit();
            layoutControl1.ResumeLayout(false);
            ((ISupportInitialize)imageComboBoxEdit1.Properties).EndInit();
            ((ISupportInitialize)Root).EndInit();
            ((ISupportInitialize)itemForList).EndInit();
            ((ISupportInitialize)itemForGroup).EndInit();
            ResumeLayout(false);
        }
 
        #endregion
        private BindingSource hydroPumpListItemStateViewModelBindingSource;
        private DevExpress.XtraEditors.ImageListBoxControl imageListBoxControl1;
        private DevExpress.XtraLayout.LayoutControl layoutControl1;
        private DevExpress.XtraEditors.ImageComboBoxEdit imageComboBoxEdit1;
        private DevExpress.XtraLayout.LayoutControlGroup Root;
        private DevExpress.XtraLayout.LayoutControlItem itemForList;
        private DevExpress.XtraLayout.LayoutControlItem itemForGroup;
    }
}