private static BaseForm ConfigureMessageForm(string pStrTitle, string pStrMessage, BaseForm pFrmBase) { UCMessage lObjUCMessage = new UCMessage(); lObjUCMessage.tblMessage.Text = pStrMessage; pFrmBase.tblTitle.Text = pStrTitle; pFrmBase.Width = 400; pFrmBase.grdContainer.Children.Add(lObjUCMessage); pFrmBase.SizeToContent = System.Windows.SizeToContent.Height; pFrmBase.ResizeMode = ResizeMode.NoResize; lObjUCMessage.btnOk.Focus(); return(pFrmBase); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FDropMaterial)); this.panel2 = new System.Windows.Forms.Panel(); this.btnDrop = new UserControl.UCButton(); this.btnExit = new UserControl.UCButton(); this.ucLabelEditMOCode = new UserControl.UCLabelEdit(); this.ucLabelEditSum = new UserControl.UCLabelEdit(); this.ucLabelEditInputRcard = new UserControl.UCLabelEdit(); this.panel3 = new System.Windows.Forms.Panel(); this.ultraGridLoadedPart = new Infragistics.Win.UltraWinGrid.UltraGrid(); this.panel4 = new System.Windows.Forms.Panel(); this.ucMessage1 = new UserControl.UCMessage(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.ultraGridLoadedPart)).BeginInit(); this.panel4.SuspendLayout(); this.SuspendLayout(); // // panel2 // this.panel2.Controls.Add(this.btnDrop); this.panel2.Controls.Add(this.btnExit); this.panel2.Controls.Add(this.ucLabelEditMOCode); this.panel2.Controls.Add(this.ucLabelEditSum); this.panel2.Controls.Add(this.ucLabelEditInputRcard); this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Location = new System.Drawing.Point(0, 342); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(752, 100); this.panel2.TabIndex = 10; // // btnDrop // this.btnDrop.BackColor = System.Drawing.SystemColors.Control; this.btnDrop.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnDrop.BackgroundImage"))); this.btnDrop.ButtonType = UserControl.ButtonTypes.Save; this.btnDrop.Caption = "拆解"; this.btnDrop.Cursor = System.Windows.Forms.Cursors.Hand; this.btnDrop.Location = new System.Drawing.Point(401, 53); this.btnDrop.Name = "btnDrop"; this.btnDrop.Size = new System.Drawing.Size(88, 22); this.btnDrop.TabIndex = 6; this.btnDrop.Click += new System.EventHandler(this.ucButtonSave_Click); // // btnExit // this.btnExit.BackColor = System.Drawing.SystemColors.Control; this.btnExit.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnExit.BackgroundImage"))); this.btnExit.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.btnExit.ButtonType = UserControl.ButtonTypes.Exit; this.btnExit.Caption = "退出"; this.btnExit.Cursor = System.Windows.Forms.Cursors.Hand; this.btnExit.Location = new System.Drawing.Point(604, 53); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(88, 22); this.btnExit.TabIndex = 5; this.btnExit.TabStop = false; // // ucLabelEditMOCode // this.ucLabelEditMOCode.AllowEditOnlyChecked = true; this.ucLabelEditMOCode.AutoSelectAll = false; this.ucLabelEditMOCode.AutoUpper = true; this.ucLabelEditMOCode.Caption = "工单"; this.ucLabelEditMOCode.Checked = false; this.ucLabelEditMOCode.EditType = UserControl.EditTypes.String; this.ucLabelEditMOCode.Location = new System.Drawing.Point(361, 23); this.ucLabelEditMOCode.MaxLength = 40; this.ucLabelEditMOCode.Multiline = false; this.ucLabelEditMOCode.Name = "ucLabelEditMOCode"; this.ucLabelEditMOCode.PasswordChar = '\0'; this.ucLabelEditMOCode.ReadOnly = true; this.ucLabelEditMOCode.ShowCheckBox = false; this.ucLabelEditMOCode.Size = new System.Drawing.Size(170, 24); this.ucLabelEditMOCode.TabIndex = 3; this.ucLabelEditMOCode.TabNext = false; this.ucLabelEditMOCode.TabStop = false; this.ucLabelEditMOCode.Value = ""; this.ucLabelEditMOCode.Visible = false; this.ucLabelEditMOCode.WidthType = UserControl.WidthTypes.Normal; this.ucLabelEditMOCode.XAlign = 398; // // ucLabelEditSum // this.ucLabelEditSum.AllowEditOnlyChecked = true; this.ucLabelEditSum.AutoSelectAll = false; this.ucLabelEditSum.AutoUpper = true; this.ucLabelEditSum.Caption = "已采集数量"; this.ucLabelEditSum.Checked = false; this.ucLabelEditSum.EditType = UserControl.EditTypes.String; this.ucLabelEditSum.Location = new System.Drawing.Point(17, 23); this.ucLabelEditSum.MaxLength = 40; this.ucLabelEditSum.Multiline = false; this.ucLabelEditSum.Name = "ucLabelEditSum"; this.ucLabelEditSum.PasswordChar = '\0'; this.ucLabelEditSum.ReadOnly = true; this.ucLabelEditSum.ShowCheckBox = false; this.ucLabelEditSum.Size = new System.Drawing.Size(206, 24); this.ucLabelEditSum.TabIndex = 3; this.ucLabelEditSum.TabNext = false; this.ucLabelEditSum.TabStop = false; this.ucLabelEditSum.Value = "0"; this.ucLabelEditSum.WidthType = UserControl.WidthTypes.Normal; this.ucLabelEditSum.XAlign = 90; // // ucLabelEditInputRcard // this.ucLabelEditInputRcard.AllowEditOnlyChecked = true; this.ucLabelEditInputRcard.AutoSelectAll = false; this.ucLabelEditInputRcard.AutoUpper = true; this.ucLabelEditInputRcard.Caption = "产品序列号"; this.ucLabelEditInputRcard.Checked = false; this.ucLabelEditInputRcard.EditType = UserControl.EditTypes.String; this.ucLabelEditInputRcard.Location = new System.Drawing.Point(17, 53); this.ucLabelEditInputRcard.MaxLength = 40; this.ucLabelEditInputRcard.Multiline = false; this.ucLabelEditInputRcard.Name = "ucLabelEditInputRcard"; this.ucLabelEditInputRcard.PasswordChar = '\0'; this.ucLabelEditInputRcard.ReadOnly = false; this.ucLabelEditInputRcard.ShowCheckBox = false; this.ucLabelEditInputRcard.Size = new System.Drawing.Size(273, 24); this.ucLabelEditInputRcard.TabIndex = 0; this.ucLabelEditInputRcard.TabNext = false; this.ucLabelEditInputRcard.Value = ""; this.ucLabelEditInputRcard.WidthType = UserControl.WidthTypes.Long; this.ucLabelEditInputRcard.XAlign = 90; this.ucLabelEditInputRcard.TxtboxKeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ucLabelEditInput_TxtboxKeyPress); // // panel3 // this.panel3.Controls.Add(this.ultraGridLoadedPart); this.panel3.Dock = System.Windows.Forms.DockStyle.Top; this.panel3.Location = new System.Drawing.Point(0, 0); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(752, 336); this.panel3.TabIndex = 11; // // ultraGridLoadedPart // this.ultraGridLoadedPart.Cursor = System.Windows.Forms.Cursors.Default; this.ultraGridLoadedPart.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.ultraGridLoadedPart.Location = new System.Drawing.Point(8, 8); this.ultraGridLoadedPart.Name = "ultraGridLoadedPart"; this.ultraGridLoadedPart.Size = new System.Drawing.Size(741, 322); this.ultraGridLoadedPart.TabIndex = 12; this.ultraGridLoadedPart.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.ultraGridLoadedPart_InitializeLayout); this.ultraGridLoadedPart.CellChange += new Infragistics.Win.UltraWinGrid.CellEventHandler(this.ultraGridLoadedPart_CellChange); // // panel4 // this.panel4.Controls.Add(this.ucMessage1); this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; this.panel4.Location = new System.Drawing.Point(0, 336); this.panel4.Name = "panel4"; this.panel4.Size = new System.Drawing.Size(752, 6); this.panel4.TabIndex = 12; // // ucMessage1 // this.ucMessage1.BackColor = System.Drawing.Color.Gainsboro; this.ucMessage1.ButtonVisible = false; this.ucMessage1.Dock = System.Windows.Forms.DockStyle.Fill; this.ucMessage1.Location = new System.Drawing.Point(0, 0); this.ucMessage1.Name = "ucMessage1"; this.ucMessage1.Size = new System.Drawing.Size(752, 6); this.ucMessage1.TabIndex = 3; this.ucMessage1.TabStop = false; // // FDropMaterial // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.ClientSize = new System.Drawing.Size(752, 442); this.Controls.Add(this.panel4); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); this.Name = "FDropMaterial"; this.Text = "拆解处理"; this.Load += new System.EventHandler(this.FDropMaterial_Load); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.FDropMaterial_FormClosed); this.panel2.ResumeLayout(false); this.panel3.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.ultraGridLoadedPart)).EndInit(); this.panel4.ResumeLayout(false); this.ResumeLayout(false); }