| | |
| | | // |
| | | gridControl1.DataSource = setHydroPumpCalcuPrefixViewModelBindingSource; |
| | | gridControl1.Dock = DockStyle.Fill; |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2, 2, 2, 2); |
| | | gridControl1.EmbeddedNavigator.Margin = new Padding(2); |
| | | gridControl1.Location = new Point(0, 0); |
| | | gridControl1.MainView = layoutView1; |
| | | gridControl1.Margin = new Padding(2, 2, 2, 2); |
| | | gridControl1.Margin = new Padding(2); |
| | | gridControl1.Name = "gridControl1"; |
| | | gridControl1.RepositoryItems.AddRange(new DevExpress.XtraEditors.Repository.RepositoryItem[] { repPicture, repImgCmbBox }); |
| | | gridControl1.Size = new Size(858, 445); |
| | |
| | | // |
| | | layoutView1.BorderStyle = BorderStyles.NoBorder; |
| | | layoutView1.CardHorzInterval = 6; |
| | | layoutView1.CardMinSize = new Size(120, 76); |
| | | layoutView1.CardMinSize = new Size(137, 86); |
| | | layoutView1.Columns.AddRange(new DevExpress.XtraGrid.Columns.LayoutViewColumn[] { colName, colRunStatus, colCurrentHz, colIcon }); |
| | | layoutView1.DetailHeight = 223; |
| | | layoutView1.GridControl = gridControl1; |
| | |
| | | layoutView1.OptionsItemText.TextToControlDistance = 0; |
| | | layoutView1.OptionsPrint.PrintCardCaption = false; |
| | | layoutView1.OptionsView.CardArrangeRule = DevExpress.XtraGrid.Views.Layout.LayoutCardArrangeRule.AllowPartialCards; |
| | | layoutView1.OptionsView.CardsAlignment = DevExpress.XtraGrid.Views.Layout.CardsAlignment.Near; |
| | | layoutView1.OptionsView.ContentAlignment = ContentAlignment.TopLeft; |
| | | layoutView1.OptionsView.ShowCardExpandButton = false; |
| | | layoutView1.OptionsView.ShowCardFieldBorders = true; |
| | |
| | | // colName |
| | | // |
| | | colName.AppearanceCell.Font = new Font("Tahoma", 11F, FontStyle.Bold, GraphicsUnit.Point); |
| | | colName.AppearanceCell.ForeColor = Color.FromArgb(0, 122, 204); |
| | | colName.AppearanceCell.Options.UseFont = true; |
| | | colName.AppearanceCell.Options.UseForeColor = true; |
| | | colName.FieldName = "Name"; |
| | | colName.LayoutViewField = layoutViewField_colName; |
| | | colName.MinWidth = 21; |
| | |
| | | // |
| | | // layoutViewField_colName |
| | | // |
| | | layoutViewField_colName.EditorPreferredWidth = 108; |
| | | layoutViewField_colName.EditorPreferredWidth = 123; |
| | | layoutViewField_colName.Location = new Point(0, 0); |
| | | layoutViewField_colName.Name = "layoutViewField_colName"; |
| | | layoutViewField_colName.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3); |
| | | layoutViewField_colName.Size = new Size(114, 22); |
| | | layoutViewField_colName.Size = new Size(131, 26); |
| | | layoutViewField_colName.TextSize = new Size(0, 0); |
| | | layoutViewField_colName.TextVisible = false; |
| | | // |
| | |
| | | // |
| | | // layoutViewField_colRunStatus |
| | | // |
| | | layoutViewField_colRunStatus.EditorPreferredWidth = 53; |
| | | layoutViewField_colRunStatus.Location = new Point(0, 22); |
| | | layoutViewField_colRunStatus.EditorPreferredWidth = 71; |
| | | layoutViewField_colRunStatus.Location = new Point(0, 26); |
| | | layoutViewField_colRunStatus.Name = "layoutViewField_colRunStatus"; |
| | | layoutViewField_colRunStatus.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3); |
| | | layoutViewField_colRunStatus.Size = new Size(114, 26); |
| | | layoutViewField_colRunStatus.Size = new Size(131, 26); |
| | | layoutViewField_colRunStatus.TextSize = new Size(52, 14); |
| | | // |
| | | // colCurrentHz |
| | | // |
| | | colCurrentHz.AppearanceCell.ForeColor = DevExpress.LookAndFeel.DXSkinColors.ForeColors.Question; |
| | | colCurrentHz.AppearanceCell.Options.UseForeColor = true; |
| | | colCurrentHz.AppearanceCell.Options.UseTextOptions = true; |
| | | colCurrentHz.AppearanceCell.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Near; |
| | | colCurrentHz.FieldName = "CurrentHz"; |
| | |
| | | // |
| | | // layoutViewField_colCurrentHz |
| | | // |
| | | layoutViewField_colCurrentHz.EditorPreferredWidth = 53; |
| | | layoutViewField_colCurrentHz.Location = new Point(0, 48); |
| | | layoutViewField_colCurrentHz.EditorPreferredWidth = 71; |
| | | layoutViewField_colCurrentHz.Location = new Point(0, 52); |
| | | layoutViewField_colCurrentHz.Name = "layoutViewField_colCurrentHz"; |
| | | layoutViewField_colCurrentHz.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3); |
| | | layoutViewField_colCurrentHz.Size = new Size(114, 26); |
| | | layoutViewField_colCurrentHz.Size = new Size(131, 28); |
| | | layoutViewField_colCurrentHz.TextSize = new Size(52, 14); |
| | | // |
| | | // colIcon |
| | |
| | | layoutViewField_colIcon.Location = new Point(0, 0); |
| | | layoutViewField_colIcon.Name = "layoutViewField_colIcon"; |
| | | layoutViewField_colIcon.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 3, 3); |
| | | layoutViewField_colIcon.Size = new Size(240, 108); |
| | | layoutViewField_colIcon.Size = new Size(123, 78); |
| | | layoutViewField_colIcon.StartNewLine = true; |
| | | layoutViewField_colIcon.TextSize = new Size(0, 0); |
| | | layoutViewField_colIcon.TextVisible = false; |