Filename copyable

This commit is contained in:
2015-09-24 14:12:42 +02:00
parent ddcdf92af3
commit fb2c721fce
3 changed files with 33 additions and 27 deletions

View File

@ -40,9 +40,11 @@
// lbWorkFiles // lbWorkFiles
// //
this.lbWorkFiles.FormattingEnabled = true; this.lbWorkFiles.FormattingEnabled = true;
this.lbWorkFiles.Location = new System.Drawing.Point(13, 13); this.lbWorkFiles.ItemHeight = 16;
this.lbWorkFiles.Location = new System.Drawing.Point(17, 16);
this.lbWorkFiles.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.lbWorkFiles.Name = "lbWorkFiles"; this.lbWorkFiles.Name = "lbWorkFiles";
this.lbWorkFiles.Size = new System.Drawing.Size(198, 355); this.lbWorkFiles.Size = new System.Drawing.Size(263, 436);
this.lbWorkFiles.TabIndex = 0; this.lbWorkFiles.TabIndex = 0;
this.lbWorkFiles.SelectedIndexChanged += new System.EventHandler(this.lbWorkFiles_SelectedIndexChanged); this.lbWorkFiles.SelectedIndexChanged += new System.EventHandler(this.lbWorkFiles_SelectedIndexChanged);
// //
@ -54,10 +56,11 @@
this.chDate, this.chDate,
this.chFileName, this.chFileName,
this.chPath}); this.chPath});
this.lvGenFiles.Location = new System.Drawing.Point(209, 13); this.lvGenFiles.Location = new System.Drawing.Point(279, 16);
this.lvGenFiles.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.lvGenFiles.MultiSelect = false; this.lvGenFiles.MultiSelect = false;
this.lvGenFiles.Name = "lvGenFiles"; this.lvGenFiles.Name = "lvGenFiles";
this.lvGenFiles.Size = new System.Drawing.Size(568, 355); this.lvGenFiles.Size = new System.Drawing.Size(756, 436);
this.lvGenFiles.TabIndex = 1; this.lvGenFiles.TabIndex = 1;
this.lvGenFiles.UseCompatibleStateImageBehavior = false; this.lvGenFiles.UseCompatibleStateImageBehavior = false;
this.lvGenFiles.View = System.Windows.Forms.View.Details; this.lvGenFiles.View = System.Windows.Forms.View.Details;
@ -85,22 +88,24 @@
// //
// btnClose // btnClose
// //
this.btnClose.Location = new System.Drawing.Point(706, 374); this.btnClose.Location = new System.Drawing.Point(941, 460);
this.btnClose.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnClose.Name = "btnClose"; this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(75, 23); this.btnClose.Size = new System.Drawing.Size(100, 28);
this.btnClose.TabIndex = 2; this.btnClose.TabIndex = 2;
this.btnClose.Text = "Stäng"; this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true; this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click); this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
// //
// CheckWorkItems // CheckWorkItems
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(789, 408); this.ClientSize = new System.Drawing.Size(1052, 502);
this.Controls.Add(this.btnClose); this.Controls.Add(this.btnClose);
this.Controls.Add(this.lvGenFiles); this.Controls.Add(this.lvGenFiles);
this.Controls.Add(this.lbWorkFiles); this.Controls.Add(this.lbWorkFiles);
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Name = "CheckWorkItems"; this.Name = "CheckWorkItems";
this.Text = "CheckWorkItems"; this.Text = "CheckWorkItems";
this.Load += new System.EventHandler(this.CheckWorkItems_Load); this.Load += new System.EventHandler(this.CheckWorkItems_Load);

View File

@ -31,12 +31,12 @@
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShowCode)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ShowCode));
this.btnClose = new System.Windows.Forms.Button(); this.btnClose = new System.Windows.Forms.Button();
this.txtCode = new System.Windows.Forms.TextBox(); this.txtCode = new System.Windows.Forms.TextBox();
this.lblCodeType = new System.Windows.Forms.Label();
this.btnSynch = new System.Windows.Forms.Button(); this.btnSynch = new System.Windows.Forms.Button();
this.btnSynchOut = new System.Windows.Forms.Button(); this.btnSynchOut = new System.Windows.Forms.Button();
this.btnSaveAktualText = new System.Windows.Forms.Button(); this.btnSaveAktualText = new System.Windows.Forms.Button();
this.btnCompare = new System.Windows.Forms.Button(); this.btnCompare = new System.Windows.Forms.Button();
this.btnMoveToLib = new System.Windows.Forms.Button(); this.btnMoveToLib = new System.Windows.Forms.Button();
this.txtCodeType = new System.Windows.Forms.TextBox();
this.SuspendLayout(); this.SuspendLayout();
// //
// btnClose // btnClose
@ -67,21 +67,11 @@
this.txtCode.TextChanged += new System.EventHandler(this.txtCode_TextChanged); this.txtCode.TextChanged += new System.EventHandler(this.txtCode_TextChanged);
this.txtCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCode_KeyDown); this.txtCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCode_KeyDown);
// //
// lblCodeType
//
this.lblCodeType.AutoSize = true;
this.lblCodeType.Font = new System.Drawing.Font("Microsoft YaHei UI", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblCodeType.Location = new System.Drawing.Point(12, 34);
this.lblCodeType.Name = "lblCodeType";
this.lblCodeType.Size = new System.Drawing.Size(75, 16);
this.lblCodeType.TabIndex = 2;
this.lblCodeType.Text = "<codeType>";
//
// btnSynch // btnSynch
// //
this.btnSynch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSynch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSynch.Location = new System.Drawing.Point(659, 790); this.btnSynch.Location = new System.Drawing.Point(659, 790);
this.btnSynch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnSynch.Margin = new System.Windows.Forms.Padding(4);
this.btnSynch.Name = "btnSynch"; this.btnSynch.Name = "btnSynch";
this.btnSynch.Size = new System.Drawing.Size(140, 28); this.btnSynch.Size = new System.Drawing.Size(140, 28);
this.btnSynch.TabIndex = 3; this.btnSynch.TabIndex = 3;
@ -94,7 +84,7 @@
// //
this.btnSynchOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnSynchOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnSynchOut.Location = new System.Drawing.Point(504, 790); this.btnSynchOut.Location = new System.Drawing.Point(504, 790);
this.btnSynchOut.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnSynchOut.Margin = new System.Windows.Forms.Padding(4);
this.btnSynchOut.Name = "btnSynchOut"; this.btnSynchOut.Name = "btnSynchOut";
this.btnSynchOut.Size = new System.Drawing.Size(147, 28); this.btnSynchOut.Size = new System.Drawing.Size(147, 28);
this.btnSynchOut.TabIndex = 4; this.btnSynchOut.TabIndex = 4;
@ -107,7 +97,7 @@
// //
this.btnSaveAktualText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnSaveAktualText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnSaveAktualText.Location = new System.Drawing.Point(16, 790); this.btnSaveAktualText.Location = new System.Drawing.Point(16, 790);
this.btnSaveAktualText.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnSaveAktualText.Margin = new System.Windows.Forms.Padding(4);
this.btnSaveAktualText.Name = "btnSaveAktualText"; this.btnSaveAktualText.Name = "btnSaveAktualText";
this.btnSaveAktualText.Size = new System.Drawing.Size(111, 28); this.btnSaveAktualText.Size = new System.Drawing.Size(111, 28);
this.btnSaveAktualText.TabIndex = 5; this.btnSaveAktualText.TabIndex = 5;
@ -118,7 +108,7 @@
// btnCompare // btnCompare
// //
this.btnCompare.Location = new System.Drawing.Point(135, 790); this.btnCompare.Location = new System.Drawing.Point(135, 790);
this.btnCompare.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.btnCompare.Margin = new System.Windows.Forms.Padding(4);
this.btnCompare.Name = "btnCompare"; this.btnCompare.Name = "btnCompare";
this.btnCompare.Size = new System.Drawing.Size(131, 28); this.btnCompare.Size = new System.Drawing.Size(131, 28);
this.btnCompare.TabIndex = 6; this.btnCompare.TabIndex = 6;
@ -137,17 +127,28 @@
this.btnMoveToLib.UseVisualStyleBackColor = true; this.btnMoveToLib.UseVisualStyleBackColor = true;
this.btnMoveToLib.Click += new System.EventHandler(this.btnMoveToLib_Click); this.btnMoveToLib.Click += new System.EventHandler(this.btnMoveToLib_Click);
// //
// txtCodeType
//
this.txtCodeType.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.txtCodeType.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtCodeType.Location = new System.Drawing.Point(16, 34);
this.txtCodeType.Name = "txtCodeType";
this.txtCodeType.ReadOnly = true;
this.txtCodeType.Size = new System.Drawing.Size(864, 15);
this.txtCodeType.TabIndex = 8;
//
// ShowCode // ShowCode
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(893, 830); this.ClientSize = new System.Drawing.Size(893, 830);
this.Controls.Add(this.txtCodeType);
this.Controls.Add(this.btnMoveToLib); this.Controls.Add(this.btnMoveToLib);
this.Controls.Add(this.btnCompare); this.Controls.Add(this.btnCompare);
this.Controls.Add(this.btnSaveAktualText); this.Controls.Add(this.btnSaveAktualText);
this.Controls.Add(this.btnSynchOut); this.Controls.Add(this.btnSynchOut);
this.Controls.Add(this.btnSynch); this.Controls.Add(this.btnSynch);
this.Controls.Add(this.lblCodeType);
this.Controls.Add(this.txtCode); this.Controls.Add(this.txtCode);
this.Controls.Add(this.btnClose); this.Controls.Add(this.btnClose);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@ -164,11 +165,11 @@
private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.TextBox txtCode; private System.Windows.Forms.TextBox txtCode;
private System.Windows.Forms.Label lblCodeType;
private System.Windows.Forms.Button btnSynch; private System.Windows.Forms.Button btnSynch;
private System.Windows.Forms.Button btnSynchOut; private System.Windows.Forms.Button btnSynchOut;
private System.Windows.Forms.Button btnSaveAktualText; private System.Windows.Forms.Button btnSaveAktualText;
private System.Windows.Forms.Button btnCompare; private System.Windows.Forms.Button btnCompare;
private System.Windows.Forms.Button btnMoveToLib; private System.Windows.Forms.Button btnMoveToLib;
private System.Windows.Forms.TextBox txtCodeType;
} }
} }

View File

@ -63,7 +63,7 @@ namespace CobXmlSupport
set set
{ {
wholeFilePath = value; wholeFilePath = value;
lblCodeType.Text = wholeFilePath.Substring(wholeFilePath.LastIndexOf("\\") + 1); ; txtCodeType.Text = wholeFilePath.Substring(wholeFilePath.LastIndexOf("\\") + 1); ;
} }
} }