lixiaojun
2024-11-28 e39e22e12380551c79f99a9c96bb77d5dc3839b1
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
namespace Yw.WinFrmUI
{
    partial class HydroPumpRunListCtrl
    {
        /// <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.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();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(HydroPumpRunListCtrl));
            imageListBoxControl1 = new DevExpress.XtraEditors.ImageListBoxControl();
            hydroPumpRunViewModelBindingSource = new BindingSource(components);
            image32 = new DevExpress.Utils.ImageCollection(components);
            ((ISupportInitialize)imageListBoxControl1).BeginInit();
            ((ISupportInitialize)hydroPumpRunViewModelBindingSource).BeginInit();
            ((ISupportInitialize)image32).BeginInit();
            SuspendLayout();
            // 
            // imageListBoxControl1
            // 
            imageListBoxControl1.DataSource = hydroPumpRunViewModelBindingSource;
            imageListBoxControl1.DisplayMember = "Name";
            imageListBoxControl1.Dock = DockStyle.Fill;
            imageListBoxControl1.ImageIndexMember = "ImageIndex";
            imageListBoxControl1.ImageList = image32;
            imageListBoxControl1.ImageMember = "ImageIndex";
            imageListBoxControl1.ItemHeight = 36;
            imageListBoxControl1.Location = new Point(0, 0);
            imageListBoxControl1.Name = "imageListBoxControl1";
            imageListBoxControl1.Size = new Size(285, 624);
            imageListBoxControl1.TabIndex = 0;
            tableColumnDefinition1.Length.Value = 40D;
            tableColumnDefinition2.Length.Value = 171D;
            tableColumnDefinition3.Length.Value = 70D;
            itemTemplateBase1.Columns.Add(tableColumnDefinition1);
            itemTemplateBase1.Columns.Add(tableColumnDefinition2);
            itemTemplateBase1.Columns.Add(tableColumnDefinition3);
            templatedItemElement1.ColumnIndex = 1;
            templatedItemElement1.FieldName = "Name";
            templatedItemElement1.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement1.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement1.Text = "Name";
            templatedItemElement1.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleLeft;
            templatedItemElement2.Appearance.Normal.ForeColor = Color.Silver;
            templatedItemElement2.Appearance.Normal.Options.UseForeColor = true;
            templatedItemElement2.ColumnIndex = 2;
            templatedItemElement2.FieldName = "CurrentHz";
            templatedItemElement2.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement2.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement2.Text = "CurrentHz";
            templatedItemElement2.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement3.FieldName = "Image";
            templatedItemElement3.ImageOptions.ImageAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            templatedItemElement3.ImageOptions.ImageScaleMode = DevExpress.XtraEditors.TileItemImageScaleMode.ZoomInside;
            templatedItemElement3.Text = "Image";
            templatedItemElement3.TextAlignment = DevExpress.XtraEditors.TileItemContentAlignment.MiddleCenter;
            itemTemplateBase1.Elements.Add(templatedItemElement1);
            itemTemplateBase1.Elements.Add(templatedItemElement2);
            itemTemplateBase1.Elements.Add(templatedItemElement3);
            itemTemplateBase1.Name = "template1";
            itemTemplateBase1.Rows.Add(tableRowDefinition1);
            imageListBoxControl1.Templates.Add(itemTemplateBase1);
            imageListBoxControl1.ValueMember = "Code";
            imageListBoxControl1.SelectedValueChanged += imageListBoxControl1_SelectedValueChanged;
            // 
            // hydroPumpRunViewModelBindingSource
            // 
            hydroPumpRunViewModelBindingSource.DataSource = typeof(HydroPumpRunViewModel);
            // 
            // image32
            // 
            image32.ImageSize = new Size(32, 32);
            image32.ImageStream = (DevExpress.Utils.ImageCollectionStreamer)resources.GetObject("image32.ImageStream");
            image32.Images.SetKeyName(0, "pump-run.png");
            image32.Images.SetKeyName(1, "pump-shut.png");
            // 
            // HydroPumpRunListCtrl
            // 
            AutoScaleDimensions = new SizeF(7F, 14F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(imageListBoxControl1);
            Name = "HydroPumpRunListCtrl";
            Size = new Size(285, 624);
            ((ISupportInitialize)imageListBoxControl1).EndInit();
            ((ISupportInitialize)hydroPumpRunViewModelBindingSource).EndInit();
            ((ISupportInitialize)image32).EndInit();
            ResumeLayout(false);
        }
 
        #endregion
 
        private DevExpress.XtraEditors.ImageListBoxControl imageListBoxControl1;
        private DevExpress.Utils.ImageCollection image32;
        private BindingSource hydroPumpRunViewModelBindingSource;
    }
}