This commit is contained in:
2022-07-06 17:54:26 +00:00
parent 2746ca674e
commit 9da03e4f7d
3 changed files with 31 additions and 7 deletions

View File

@@ -32,6 +32,7 @@
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel();
this.btnCopy = new System.Windows.Forms.Button(); this.btnCopy = new System.Windows.Forms.Button();
this.btnOK = new System.Windows.Forms.Button();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.panel2.SuspendLayout(); this.panel2.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@@ -58,6 +59,7 @@
// //
// panel2 // panel2
// //
this.panel2.Controls.Add(this.btnOK);
this.panel2.Controls.Add(this.btnCopy); this.panel2.Controls.Add(this.btnCopy);
this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
this.panel2.Location = new System.Drawing.Point(0, 281); this.panel2.Location = new System.Drawing.Point(0, 281);
@@ -67,21 +69,34 @@
// //
// btnCopy // btnCopy
// //
this.btnCopy.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) this.btnCopy.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
| System.Windows.Forms.AnchorStyles.Left) this.btnCopy.AutoSize = true;
| System.Windows.Forms.AnchorStyles.Right))); this.btnCopy.Location = new System.Drawing.Point(12, 36);
this.btnCopy.Location = new System.Drawing.Point(135, 23);
this.btnCopy.Name = "btnCopy"; this.btnCopy.Name = "btnCopy";
this.btnCopy.Size = new System.Drawing.Size(208, 40); this.btnCopy.Size = new System.Drawing.Size(112, 23);
this.btnCopy.TabIndex = 0; this.btnCopy.TabIndex = 0;
this.btnCopy.Text = "Copy all to clipboard"; this.btnCopy.Text = "Copy all to clipboard";
this.btnCopy.UseVisualStyleBackColor = true; this.btnCopy.UseVisualStyleBackColor = true;
this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click); this.btnCopy.Click += new System.EventHandler(this.btnCopy_Click);
// //
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnOK.Location = new System.Drawing.Point(389, 36);
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size(75, 23);
this.btnOK.TabIndex = 17;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
//
// CopyableMessageBox // CopyableMessageBox
// //
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnOK;
this.ClientSize = new System.Drawing.Size(488, 356); this.ClientSize = new System.Drawing.Size(488, 356);
this.Controls.Add(this.panel2); this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1); this.Controls.Add(this.panel1);
@@ -90,6 +105,7 @@
this.panel1.ResumeLayout(false); this.panel1.ResumeLayout(false);
this.panel1.PerformLayout(); this.panel1.PerformLayout();
this.panel2.ResumeLayout(false); this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@@ -100,5 +116,6 @@
private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Button btnCopy; private System.Windows.Forms.Button btnCopy;
private System.Windows.Forms.Button btnOK;
} }
} }

View File

@@ -17,7 +17,8 @@ namespace AyaNovaQBI
{ {
InitializeComponent(); InitializeComponent();
mDisplay=Display; mDisplay=Display;
this.Icon = AyaNovaQBI.Properties.Resources.logo; Icon = AyaNovaQBI.Properties.Resources.logo;
btnOK.Text = util.AyaTranslations["OK"];
} }
private void btnCopy_Click(object sender, EventArgs e) private void btnCopy_Click(object sender, EventArgs e)
@@ -30,5 +31,11 @@ namespace AyaNovaQBI
edOut.Text = mDisplay; edOut.Text = mDisplay;
} }
private void btnOK_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.OK;
Close();
}
} }
} }

View File

@@ -1350,7 +1350,7 @@ namespace AyaNovaQBI
//QBIntegration.Concurrency = r.ObjectResponse["data"]["concurrency"].Value<uint>(); //QBIntegration.Concurrency = r.ObjectResponse["data"]["concurrency"].Value<uint>();
//////Case 299 //////Case 299
////QBI.AIObject = QDat.XMLData; ////QBI.AIObject = QDat.XMLData;
//////QBI.AIObject=QDat; //////QBI.AIObject=QDat;
////QBI = (Integration)QBI.Save(); ////QBI = (Integration)QBI.Save();
//QDat.IsDirty = false; //QDat.IsDirty = false;