diff --git a/Work/_29Tools/Forms/PddMobileBuyOrderForm.cs b/Work/_29Tools/Forms/PddMobileBuyOrderForm.cs index 7331b60..c287615 100644 --- a/Work/_29Tools/Forms/PddMobileBuyOrderForm.cs +++ b/Work/_29Tools/Forms/PddMobileBuyOrderForm.cs @@ -1792,5 +1792,18 @@ namespace TemuKJD.ToolForms { txtBuyTransitWarehouseStr = txtBuyTransitWarehouse.Text.Trim(); } + + private void lblErrMsg_TextChanged(object sender, EventArgs e) + { + if (string.IsNullOrWhiteSpace(lblErrMsg.Text)) + pnlMsg.Visible = false; + else + pnlMsg.Visible = true; + } + + private void pictureBox4_Click(object sender, EventArgs e) + { + this.pnlMsg.Visible = false; + } } } diff --git a/Work/_29Tools/Forms/PddMobileBuyOrderForm.designer.cs b/Work/_29Tools/Forms/PddMobileBuyOrderForm.designer.cs index b78b591..c67206d 100644 --- a/Work/_29Tools/Forms/PddMobileBuyOrderForm.designer.cs +++ b/Work/_29Tools/Forms/PddMobileBuyOrderForm.designer.cs @@ -30,6 +30,8 @@ { this.components = new System.ComponentModel.Container(); this.splitContainer1 = new System.Windows.Forms.SplitContainer(); + this.pnlMsg = new System.Windows.Forms.Panel(); + this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.lblErrMsg = new System.Windows.Forms.Label(); this.pnlMask = new DevComponents.DotNetBar.PanelEx(); this.btnJumpOrderList = new DevComponents.DotNetBar.PanelEx(); @@ -116,6 +118,8 @@ this.splitContainer1.Panel1.SuspendLayout(); this.splitContainer1.Panel2.SuspendLayout(); this.splitContainer1.SuspendLayout(); + this.pnlMsg.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); this.splitContainer2.Panel1.SuspendLayout(); this.splitContainer2.Panel2.SuspendLayout(); @@ -148,7 +152,7 @@ // // splitContainer1.Panel1 // - this.splitContainer1.Panel1.Controls.Add(this.lblErrMsg); + this.splitContainer1.Panel1.Controls.Add(this.pnlMsg); this.splitContainer1.Panel1.Controls.Add(this.pnlMask); this.splitContainer1.Panel1MinSize = 0; // @@ -162,19 +166,44 @@ this.splitContainer1.SplitterWidth = 3; this.splitContainer1.TabIndex = 4; // + // pnlMsg + // + this.pnlMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); + this.pnlMsg.Controls.Add(this.pictureBox4); + this.pnlMsg.Controls.Add(this.lblErrMsg); + this.pnlMsg.Location = new System.Drawing.Point(47, 537); + this.pnlMsg.Name = "pnlMsg"; + this.pnlMsg.Size = new System.Drawing.Size(771, 100); + this.pnlMsg.TabIndex = 898; + this.pnlMsg.Visible = false; + // + // pictureBox4 + // + this.pictureBox4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.pictureBox4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(99)))), ((int)(((byte)(143))))); + this.pictureBox4.Image = global::Work.Properties.Resources.close; + this.pictureBox4.Location = new System.Drawing.Point(736, 3); + this.pictureBox4.Name = "pictureBox4"; + this.pictureBox4.Size = new System.Drawing.Size(32, 32); + this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; + this.pictureBox4.TabIndex = 897; + this.pictureBox4.TabStop = false; + this.pictureBox4.Click += new System.EventHandler(this.pictureBox4_Click); + // // lblErrMsg // - this.lblErrMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.lblErrMsg.BackColor = System.Drawing.Color.White; this.lblErrMsg.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.lblErrMsg.Dock = System.Windows.Forms.DockStyle.Fill; this.lblErrMsg.Font = new System.Drawing.Font("微软雅黑", 18F, System.Drawing.FontStyle.Bold); this.lblErrMsg.ForeColor = System.Drawing.Color.Red; - this.lblErrMsg.Location = new System.Drawing.Point(47, 368); + this.lblErrMsg.Location = new System.Drawing.Point(0, 0); this.lblErrMsg.Name = "lblErrMsg"; - this.lblErrMsg.Size = new System.Drawing.Size(771, 128); + this.lblErrMsg.Size = new System.Drawing.Size(771, 100); this.lblErrMsg.TabIndex = 893; this.lblErrMsg.Text = "errMsg "; this.lblErrMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.lblErrMsg.TextChanged += new System.EventHandler(this.lblErrMsg_TextChanged); // // pnlMask // @@ -1200,6 +1229,8 @@ this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); this.splitContainer1.ResumeLayout(false); + this.pnlMsg.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit(); this.splitContainer2.Panel1.ResumeLayout(false); this.splitContainer2.Panel1.PerformLayout(); this.splitContainer2.Panel2.ResumeLayout(false); @@ -1305,5 +1336,7 @@ private System.Windows.Forms.PictureBox pictureBox2; private DevComponents.DotNetBar.PanelEx btnCancelAutoBuy; private System.Windows.Forms.Label lblErrMsg; + protected System.Windows.Forms.PictureBox pictureBox4; + private System.Windows.Forms.Panel pnlMsg; } } \ No newline at end of file