Nu fungerar hela inläsningen och reorganisationen !

This commit is contained in:
2020-07-22 00:13:48 +02:00
parent f9437f04be
commit 6b27788721
6 changed files with 373 additions and 107 deletions

View File

@ -46,9 +46,6 @@ namespace PictureHandling
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.btnFileDialog = new System.Windows.Forms.Button();
this.lblPath = new System.Windows.Forms.Label();
@ -61,6 +58,10 @@ namespace PictureHandling
this.btnReOrganize = new System.Windows.Forms.Button();
this.label3 = new System.Windows.Forms.Label();
this.txtRootDir = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.lblGroundPath = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.lblFinalPath = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
@ -75,39 +76,43 @@ namespace PictureHandling
//
// lblPath
//
this.lblPath.Location = new System.Drawing.Point(160, 16);
this.lblPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblPath.Location = new System.Drawing.Point(167, 16);
this.lblPath.Name = "lblPath";
this.lblPath.Size = new System.Drawing.Size(528, 23);
this.lblPath.Size = new System.Drawing.Size(521, 17);
this.lblPath.TabIndex = 1;
//
// label2
//
this.label2.Location = new System.Drawing.Point(104, 16);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(56, 23);
this.label2.Size = new System.Drawing.Size(56, 17);
this.label2.TabIndex = 2;
this.label2.Text = "Path";
//
// lblFileName
//
this.lblFileName.Location = new System.Drawing.Point(160, 48);
this.lblFileName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblFileName.Location = new System.Drawing.Point(167, 33);
this.lblFileName.Name = "lblFileName";
this.lblFileName.Size = new System.Drawing.Size(248, 23);
this.lblFileName.Size = new System.Drawing.Size(210, 15);
this.lblFileName.TabIndex = 3;
//
// label1
//
this.label1.Location = new System.Drawing.Point(104, 48);
this.label1.Location = new System.Drawing.Point(104, 33);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(56, 23);
this.label1.Size = new System.Drawing.Size(56, 15);
this.label1.TabIndex = 4;
this.label1.Text = "Filnamn";
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Location = new System.Drawing.Point(176, 88);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(512, 480);
@ -117,6 +122,7 @@ namespace PictureHandling
//
// lstPicFiles
//
this.lstPicFiles.FormattingEnabled = true;
this.lstPicFiles.Location = new System.Drawing.Point(16, 88);
this.lstPicFiles.Name = "lstPicFiles";
this.lstPicFiles.Size = new System.Drawing.Size(128, 394);
@ -125,9 +131,10 @@ namespace PictureHandling
//
// lblCreated
//
this.lblCreated.Location = new System.Drawing.Point(424, 48);
this.lblCreated.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblCreated.Location = new System.Drawing.Point(355, 30);
this.lblCreated.Name = "lblCreated";
this.lblCreated.Size = new System.Drawing.Size(264, 23);
this.lblCreated.Size = new System.Drawing.Size(333, 18);
this.lblCreated.TabIndex = 7;
this.lblCreated.Text = "Skapad: ";
//
@ -158,10 +165,49 @@ namespace PictureHandling
this.txtRootDir.Text = "\\\\TFOASUS\\OurPictures";
this.txtRootDir.TextChanged += new System.EventHandler(this.txtRootDir_TextChanged);
//
// label4
//
this.label4.Location = new System.Drawing.Point(104, 48);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(64, 15);
this.label4.TabIndex = 12;
this.label4.Text = "GrundPath";
//
// lblGroundPath
//
this.lblGroundPath.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.lblGroundPath.Location = new System.Drawing.Point(166, 48);
this.lblGroundPath.Name = "lblGroundPath";
this.lblGroundPath.Size = new System.Drawing.Size(174, 15);
this.lblGroundPath.TabIndex = 11;
//
// label6
//
this.label6.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label6.Location = new System.Drawing.Point(355, 48);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(51, 15);
this.label6.TabIndex = 14;
this.label6.Text = "SlutPath";
//
// lblFinalPath
//
this.lblFinalPath.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lblFinalPath.Location = new System.Drawing.Point(412, 48);
this.lblFinalPath.Name = "lblFinalPath";
this.lblFinalPath.Size = new System.Drawing.Size(276, 15);
this.lblFinalPath.TabIndex = 13;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(704, 590);
this.Controls.Add(this.label6);
this.Controls.Add(this.lblFinalPath);
this.Controls.Add(this.label4);
this.Controls.Add(this.lblGroundPath);
this.Controls.Add(this.txtRootDir);
this.Controls.Add(this.label3);
this.Controls.Add(this.btnReOrganize);
@ -173,14 +219,22 @@ namespace PictureHandling
this.Controls.Add(this.label2);
this.Controls.Add(this.lblPath);
this.Controls.Add(this.btnFileDialog);
//this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "Form1";
this.Text = "Form1";
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label lblGroundPath;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label lblFinalPath;
}
}