| | |
| | | { |
| | | components = new System.ComponentModel.Container(); |
| | | layoutControl1 = new DevExpress.XtraLayout.LayoutControl(); |
| | | popupContainerControl1 = new DevExpress.XtraEditors.PopupContainerControl(); |
| | | treeList1 = new DevExpress.XtraTreeList.TreeList(); |
| | | colName = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colCaliber = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colMaterial = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colMinorLoss = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | colFlowMinorLoss = new DevExpress.XtraTreeList.Columns.TreeListColumn(); |
| | | sprinklerCoefficientViewModelBindingSource = new BindingSource(components); |
| | | BtnOk = new DevExpress.XtraEditors.SimpleButton(); |
| | | simpleButton1 = new DevExpress.XtraEditors.SimpleButton(); |
| | | TextEditName = new DevExpress.XtraEditors.TextEdit(); |
| | |
| | | TextEditCaliber = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | TextEditMaterial = new DevExpress.XtraEditors.ImageComboBoxEdit(); |
| | | TextEditAngle = new DevExpress.XtraEditors.TextEdit(); |
| | | TextEditFlowcoefficient = new DevExpress.XtraEditors.TextEdit(); |
| | | TextEditCoefficient = new DevExpress.XtraEditors.TextEdit(); |
| | | TextEditKeyWord = new DevExpress.XtraEditors.TextEdit(); |
| | | TextEditFlowcoefficient = new DevExpress.XtraEditors.PopupContainerEdit(); |
| | | Root = new DevExpress.XtraLayout.LayoutControlGroup(); |
| | | layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem(); |
| | | emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem(); |
| | |
| | | toolTipController1 = new DevExpress.Utils.ToolTipController(components); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).BeginInit(); |
| | | layoutControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)popupContainerControl1).BeginInit(); |
| | | popupContainerControl1.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)treeList1).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)sprinklerCoefficientViewModelBindingSource).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditName.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditCaliber.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditMaterial.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditAngle.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditFlowcoefficient.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditCoefficient.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditKeyWord.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditFlowcoefficient.Properties).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).BeginInit(); |
| | |
| | | // |
| | | // layoutControl1 |
| | | // |
| | | layoutControl1.Controls.Add(popupContainerControl1); |
| | | layoutControl1.Controls.Add(BtnOk); |
| | | layoutControl1.Controls.Add(simpleButton1); |
| | | layoutControl1.Controls.Add(TextEditName); |
| | |
| | | layoutControl1.Controls.Add(TextEditCaliber); |
| | | layoutControl1.Controls.Add(TextEditMaterial); |
| | | layoutControl1.Controls.Add(TextEditAngle); |
| | | layoutControl1.Controls.Add(TextEditFlowcoefficient); |
| | | layoutControl1.Controls.Add(TextEditCoefficient); |
| | | layoutControl1.Controls.Add(TextEditKeyWord); |
| | | layoutControl1.Controls.Add(TextEditFlowcoefficient); |
| | | layoutControl1.Dock = DockStyle.Fill; |
| | | layoutControl1.Location = new Point(0, 0); |
| | | layoutControl1.Name = "layoutControl1"; |
| | |
| | | layoutControl1.Size = new Size(681, 482); |
| | | layoutControl1.TabIndex = 0; |
| | | layoutControl1.Text = "layoutControl1"; |
| | | // |
| | | // popupContainerControl1 |
| | | // |
| | | popupContainerControl1.Controls.Add(treeList1); |
| | | popupContainerControl1.Location = new Point(112, 184); |
| | | popupContainerControl1.Name = "popupContainerControl1"; |
| | | popupContainerControl1.Size = new Size(215, 124); |
| | | popupContainerControl1.TabIndex = 14; |
| | | // |
| | | // treeList1 |
| | | // |
| | | treeList1.Columns.AddRange(new DevExpress.XtraTreeList.Columns.TreeListColumn[] { colName, colCaliber, colMaterial, colMinorLoss, colFlowMinorLoss }); |
| | | treeList1.DataSource = sprinklerCoefficientViewModelBindingSource; |
| | | treeList1.Dock = DockStyle.Fill; |
| | | treeList1.Location = new Point(0, 0); |
| | | treeList1.Name = "treeList1"; |
| | | treeList1.Size = new Size(215, 124); |
| | | treeList1.TabIndex = 0; |
| | | treeList1.FocusedNodeChanged += treeList1_FocusedNodeChanged; |
| | | // |
| | | // colName |
| | | // |
| | | colName.Caption = "名称"; |
| | | colName.FieldName = "Name"; |
| | | colName.Name = "colName"; |
| | | colName.Visible = true; |
| | | colName.VisibleIndex = 0; |
| | | // |
| | | // colCaliber |
| | | // |
| | | colCaliber.Caption = "口径"; |
| | | colCaliber.FieldName = "Caliber"; |
| | | colCaliber.Name = "colCaliber"; |
| | | colCaliber.Visible = true; |
| | | colCaliber.VisibleIndex = 1; |
| | | // |
| | | // colMaterial |
| | | // |
| | | colMaterial.Caption = "材料"; |
| | | colMaterial.FieldName = "Material"; |
| | | colMaterial.Name = "colMaterial"; |
| | | colMaterial.Visible = true; |
| | | colMaterial.VisibleIndex = 2; |
| | | // |
| | | // colMinorLoss |
| | | // |
| | | colMinorLoss.Caption = "喷射系数"; |
| | | colMinorLoss.FieldName = "MinorLoss"; |
| | | colMinorLoss.Name = "colMinorLoss"; |
| | | colMinorLoss.Visible = true; |
| | | colMinorLoss.VisibleIndex = 3; |
| | | // |
| | | // colFlowMinorLoss |
| | | // |
| | | colFlowMinorLoss.Caption = "流量系数"; |
| | | colFlowMinorLoss.FieldName = "FlowMinorLoss"; |
| | | colFlowMinorLoss.Name = "colFlowMinorLoss"; |
| | | colFlowMinorLoss.Visible = true; |
| | | colFlowMinorLoss.VisibleIndex = 4; |
| | | // |
| | | // sprinklerCoefficientViewModelBindingSource |
| | | // |
| | | sprinklerCoefficientViewModelBindingSource.DataSource = typeof(SprinklerCoefficientViewModel); |
| | | // |
| | | // BtnOk |
| | | // |
| | |
| | | BtnOk.Size = new Size(89, 22); |
| | | BtnOk.StyleController = layoutControl1; |
| | | BtnOk.TabIndex = 8; |
| | | BtnOk.Text = "完成"; |
| | | BtnOk.Text = "确定"; |
| | | BtnOk.Click += BtnOk_ClickAsync; |
| | | // |
| | | // simpleButton1 |
| | | // |
| | | simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Danger; |
| | | simpleButton1.Appearance.BackColor = DevExpress.LookAndFeel.DXSkinColors.FillColors.Warning; |
| | | simpleButton1.Appearance.Options.UseBackColor = true; |
| | | simpleButton1.DialogResult = DialogResult.Cancel; |
| | | simpleButton1.Location = new Point(588, 452); |
| | |
| | | TextEditName.StyleController = layoutControl1; |
| | | TextEditName.TabIndex = 0; |
| | | // |
| | | // textEditDescription |
| | | // DescriptionTextEdit |
| | | // |
| | | DescriptionTextEdit.Location = new Point(20, 137); |
| | | DescriptionTextEdit.Name = "DescriptionTextEdit"; |
| | |
| | | TextEditCaliber.Size = new Size(266, 20); |
| | | TextEditCaliber.StyleController = layoutControl1; |
| | | TextEditCaliber.TabIndex = 3; |
| | | TextEditCaliber.SelectedIndexChanged += TextEditCaliber_SelectedIndexChanged; |
| | | // |
| | | // TextEditMaterial |
| | | // |
| | |
| | | TextEditMaterial.Size = new Size(267, 20); |
| | | TextEditMaterial.StyleController = layoutControl1; |
| | | TextEditMaterial.TabIndex = 4; |
| | | TextEditMaterial.SelectedIndexChanged += TextEditMaterial_SelectedIndexChanged; |
| | | // |
| | | // TextEditAngle |
| | | // |
| | |
| | | TextEditAngle.StyleController = layoutControl1; |
| | | TextEditAngle.TabIndex = 6; |
| | | // |
| | | // TextEditFlowcoefficient |
| | | // |
| | | TextEditFlowcoefficient.Location = new Point(72, 80); |
| | | TextEditFlowcoefficient.Name = "TextEditFlowcoefficient"; |
| | | TextEditFlowcoefficient.Size = new Size(601, 20); |
| | | TextEditFlowcoefficient.StyleController = layoutControl1; |
| | | TextEditFlowcoefficient.TabIndex = 5; |
| | | // |
| | | // TextEditMinorLoss |
| | | // TextEditCoefficient |
| | | // |
| | | TextEditCoefficient.Location = new Point(72, 56); |
| | | TextEditCoefficient.Name = "TextEditCoefficient"; |
| | |
| | | // TextEditKeyWord |
| | | // |
| | | TextEditKeyWord.Location = new Point(406, 8); |
| | | TextEditKeyWord.Name = "TextEditKeyWorld"; |
| | | TextEditKeyWord.Name = "TextEditKeyWord"; |
| | | TextEditKeyWord.Size = new Size(267, 20); |
| | | TextEditKeyWord.StyleController = layoutControl1; |
| | | TextEditKeyWord.TabIndex = 2; |
| | | // |
| | | // TextEditFlowcoefficient |
| | | // |
| | | TextEditFlowcoefficient.Location = new Point(72, 80); |
| | | TextEditFlowcoefficient.Name = "TextEditFlowcoefficient"; |
| | | TextEditFlowcoefficient.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] { new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo) }); |
| | | TextEditFlowcoefficient.Properties.PopupControl = popupContainerControl1; |
| | | TextEditFlowcoefficient.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.Standard; |
| | | TextEditFlowcoefficient.Size = new Size(601, 20); |
| | | TextEditFlowcoefficient.StyleController = layoutControl1; |
| | | TextEditFlowcoefficient.TabIndex = 5; |
| | | // |
| | | // Root |
| | | // |
| | |
| | | layoutControlItem27.Text = "说明:"; |
| | | layoutControlItem27.TextSize = new Size(59, 14); |
| | | // |
| | | // AddAssetsNozzleMainDlg |
| | | // AddAssetsSprinklerMainDlg |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 14F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | ClientSize = new Size(681, 482); |
| | | Controls.Add(layoutControl1); |
| | | Name = "AddAssetsNozzleMainDlg"; |
| | | Name = "AddAssetsSprinklerMainDlg"; |
| | | StartPosition = FormStartPosition.CenterScreen; |
| | | Text = "添加喷头"; |
| | | ((System.ComponentModel.ISupportInitialize)layoutControl1).EndInit(); |
| | | layoutControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)popupContainerControl1).EndInit(); |
| | | popupContainerControl1.ResumeLayout(false); |
| | | ((System.ComponentModel.ISupportInitialize)treeList1).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)sprinklerCoefficientViewModelBindingSource).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditName.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)DescriptionTextEdit.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditCaliber.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditMaterial.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditAngle.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditFlowcoefficient.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditCoefficient.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditKeyWord.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)TextEditFlowcoefficient.Properties).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)Root).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)layoutControlItem4).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)emptySpaceItem1).EndInit(); |
| | |
| | | private DevExpress.XtraEditors.TextEdit TextEditCoefficient; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem3; |
| | | private DevExpress.XtraEditors.TextEdit TextEditAngle; |
| | | private DevExpress.XtraEditors.TextEdit TextEditFlowcoefficient; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6; |
| | | private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7; |
| | | private DevExpress.XtraEditors.PopupContainerControl popupContainerControl1; |
| | | private DevExpress.XtraTreeList.TreeList treeList1; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colName; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colCaliber; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colMaterial; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colMinorLoss; |
| | | private DevExpress.XtraTreeList.Columns.TreeListColumn colFlowMinorLoss; |
| | | private BindingSource sprinklerCoefficientViewModelBindingSource; |
| | | private DevExpress.XtraEditors.PopupContainerEdit TextEditFlowcoefficient; |
| | | } |
| | | } |