279 lines
13 KiB
C#
279 lines
13 KiB
C#
using System;
|
|
|
|
namespace PictureHandling
|
|
{
|
|
partial class Form1
|
|
{
|
|
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
|
private System.Windows.Forms.Button btnFileDialog;
|
|
private System.Windows.Forms.Label lblPath;
|
|
private System.Windows.Forms.Label HPath;
|
|
private System.Windows.Forms.Label lblFileName;
|
|
private System.Windows.Forms.Label HFilnamn;
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|
private System.Windows.Forms.ListBox lstPicFiles;
|
|
private System.Windows.Forms.Label HSkapad;
|
|
private System.Windows.Forms.Button btnReOrganize;
|
|
|
|
/// <summary>
|
|
/// Required designer variable.
|
|
/// </summary>
|
|
//private System.ComponentModel.Container components = null;
|
|
private System.Windows.Forms.Label HNyRotKatalog;
|
|
private System.Windows.Forms.TextBox txtRootDir;
|
|
private bool Deleting = false;
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>
|
|
/// Clean up any resources being used.
|
|
/// </summary>
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
/// <summary>
|
|
/// Required method for Designer support - do not modify
|
|
/// the contents of this method with the code editor.
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
|
this.btnFileDialog = new System.Windows.Forms.Button();
|
|
this.lblPath = new System.Windows.Forms.Label();
|
|
this.HPath = new System.Windows.Forms.Label();
|
|
this.lblFileName = new System.Windows.Forms.Label();
|
|
this.HFilnamn = new System.Windows.Forms.Label();
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
this.lstPicFiles = new System.Windows.Forms.ListBox();
|
|
this.HSkapad = new System.Windows.Forms.Label();
|
|
this.btnReOrganize = new System.Windows.Forms.Button();
|
|
this.HNyRotKatalog = new System.Windows.Forms.Label();
|
|
this.txtRootDir = new System.Windows.Forms.TextBox();
|
|
this.HGrundpath = new System.Windows.Forms.Label();
|
|
this.lblGroundPath = new System.Windows.Forms.Label();
|
|
this.HSlutpath = new System.Windows.Forms.Label();
|
|
this.lblFinalPath = new System.Windows.Forms.Label();
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
|
|
this.lblCreated = new System.Windows.Forms.Label();
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
this.tableLayoutPanel1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// btnFileDialog
|
|
//
|
|
this.btnFileDialog.Location = new System.Drawing.Point(35, 92);
|
|
this.btnFileDialog.Name = "btnFileDialog";
|
|
this.btnFileDialog.Size = new System.Drawing.Size(75, 23);
|
|
this.btnFileDialog.TabIndex = 0;
|
|
this.btnFileDialog.Text = "Välj fil";
|
|
this.btnFileDialog.Click += new System.EventHandler(this.btnFileDialog_Click);
|
|
//
|
|
// lblPath
|
|
//
|
|
this.lblPath.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblPath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblPath.Location = new System.Drawing.Point(75, 16);
|
|
this.lblPath.Name = "lblPath";
|
|
this.lblPath.Size = new System.Drawing.Size(279, 16);
|
|
this.lblPath.TabIndex = 1;
|
|
//
|
|
// HPath
|
|
//
|
|
this.HPath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.HPath.Location = new System.Drawing.Point(3, 16);
|
|
this.HPath.Name = "HPath";
|
|
this.HPath.Size = new System.Drawing.Size(66, 16);
|
|
this.HPath.TabIndex = 2;
|
|
this.HPath.Text = "Path";
|
|
//
|
|
// lblFileName
|
|
//
|
|
this.lblFileName.BackColor = System.Drawing.Color.Transparent;
|
|
this.tableLayoutPanel1.SetColumnSpan(this.lblFileName, 3);
|
|
this.lblFileName.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblFileName.Location = new System.Drawing.Point(75, 0);
|
|
this.lblFileName.Name = "lblFileName";
|
|
this.lblFileName.Size = new System.Drawing.Size(590, 16);
|
|
this.lblFileName.TabIndex = 3;
|
|
//
|
|
// HFilnamn
|
|
//
|
|
this.HFilnamn.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.HFilnamn.Location = new System.Drawing.Point(3, 0);
|
|
this.HFilnamn.Name = "HFilnamn";
|
|
this.HFilnamn.Size = new System.Drawing.Size(66, 16);
|
|
this.HFilnamn.TabIndex = 4;
|
|
this.HFilnamn.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.Location = new System.Drawing.Point(179, 90);
|
|
this.pictureBox1.Name = "pictureBox1";
|
|
this.pictureBox1.Size = new System.Drawing.Size(524, 509);
|
|
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
|
|
this.pictureBox1.TabIndex = 5;
|
|
this.pictureBox1.TabStop = false;
|
|
//
|
|
// lstPicFiles
|
|
//
|
|
this.lstPicFiles.FormattingEnabled = true;
|
|
this.lstPicFiles.Location = new System.Drawing.Point(35, 124);
|
|
this.lstPicFiles.Name = "lstPicFiles";
|
|
this.lstPicFiles.Size = new System.Drawing.Size(128, 394);
|
|
this.lstPicFiles.TabIndex = 6;
|
|
this.lstPicFiles.SelectedIndexChanged += new System.EventHandler(this.lstPicFiles_SelectedIndexChanged);
|
|
//
|
|
// HSkapad
|
|
//
|
|
this.HSkapad.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.HSkapad.Location = new System.Drawing.Point(360, 16);
|
|
this.HSkapad.Name = "HSkapad";
|
|
this.HSkapad.Size = new System.Drawing.Size(50, 16);
|
|
this.HSkapad.TabIndex = 7;
|
|
this.HSkapad.Text = "Skapad: ";
|
|
//
|
|
// btnReOrganize
|
|
//
|
|
this.btnReOrganize.Enabled = false;
|
|
this.btnReOrganize.Location = new System.Drawing.Point(35, 532);
|
|
this.btnReOrganize.Name = "btnReOrganize";
|
|
this.btnReOrganize.Size = new System.Drawing.Size(136, 23);
|
|
this.btnReOrganize.TabIndex = 8;
|
|
this.btnReOrganize.Text = "Reorganisera filer";
|
|
this.btnReOrganize.Click += new System.EventHandler(this.btnReOrganize_Click);
|
|
//
|
|
// HNyRotKatalog
|
|
//
|
|
this.HNyRotKatalog.Location = new System.Drawing.Point(35, 564);
|
|
this.HNyRotKatalog.Name = "HNyRotKatalog";
|
|
this.HNyRotKatalog.Size = new System.Drawing.Size(128, 16);
|
|
this.HNyRotKatalog.TabIndex = 9;
|
|
this.HNyRotKatalog.Text = "Ny RotKatalog";
|
|
//
|
|
// txtRootDir
|
|
//
|
|
this.txtRootDir.Location = new System.Drawing.Point(35, 580);
|
|
this.txtRootDir.Name = "txtRootDir";
|
|
this.txtRootDir.Size = new System.Drawing.Size(136, 20);
|
|
this.txtRootDir.TabIndex = 10;
|
|
this.txtRootDir.Text = "\\\\TFOASUS\\OurPictures";
|
|
this.txtRootDir.TextChanged += new System.EventHandler(this.txtRootDir_TextChanged);
|
|
//
|
|
// HGrundpath
|
|
//
|
|
this.HGrundpath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.HGrundpath.Location = new System.Drawing.Point(3, 32);
|
|
this.HGrundpath.Name = "HGrundpath";
|
|
this.HGrundpath.Size = new System.Drawing.Size(66, 18);
|
|
this.HGrundpath.TabIndex = 12;
|
|
this.HGrundpath.Text = "GrundPath";
|
|
//
|
|
// lblGroundPath
|
|
//
|
|
this.lblGroundPath.BackColor = System.Drawing.Color.Transparent;
|
|
this.lblGroundPath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblGroundPath.Location = new System.Drawing.Point(75, 32);
|
|
this.lblGroundPath.Name = "lblGroundPath";
|
|
this.lblGroundPath.Size = new System.Drawing.Size(279, 18);
|
|
this.lblGroundPath.TabIndex = 11;
|
|
//
|
|
// HSlutpath
|
|
//
|
|
this.HSlutpath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.HSlutpath.Location = new System.Drawing.Point(360, 32);
|
|
this.HSlutpath.Name = "HSlutpath";
|
|
this.HSlutpath.Size = new System.Drawing.Size(50, 18);
|
|
this.HSlutpath.TabIndex = 14;
|
|
this.HSlutpath.Text = "SlutPath";
|
|
//
|
|
// lblFinalPath
|
|
//
|
|
this.lblFinalPath.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblFinalPath.Location = new System.Drawing.Point(416, 32);
|
|
this.lblFinalPath.Name = "lblFinalPath";
|
|
this.lblFinalPath.Size = new System.Drawing.Size(249, 18);
|
|
this.lblFinalPath.TabIndex = 13;
|
|
//
|
|
// tableLayoutPanel1
|
|
//
|
|
this.tableLayoutPanel1.ColumnCount = 4;
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20.16807F));
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 79.83193F));
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 56F));
|
|
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 254F));
|
|
this.tableLayoutPanel1.Controls.Add(this.lblCreated, 3, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.HGrundpath, 0, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.HFilnamn, 0, 0);
|
|
this.tableLayoutPanel1.Controls.Add(this.HSlutpath, 2, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.HSkapad, 2, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblFinalPath, 3, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblGroundPath, 1, 2);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblPath, 1, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.HPath, 0, 1);
|
|
this.tableLayoutPanel1.Controls.Add(this.lblFileName, 1, 0);
|
|
this.tableLayoutPanel1.Location = new System.Drawing.Point(35, 12);
|
|
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
|
|
this.tableLayoutPanel1.RowCount = 3;
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
|
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F));
|
|
this.tableLayoutPanel1.Size = new System.Drawing.Size(668, 50);
|
|
this.tableLayoutPanel1.TabIndex = 15;
|
|
//
|
|
// lblCreated
|
|
//
|
|
this.lblCreated.AutoSize = true;
|
|
this.lblCreated.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
this.lblCreated.Location = new System.Drawing.Point(416, 16);
|
|
this.lblCreated.Name = "lblCreated";
|
|
this.lblCreated.Size = new System.Drawing.Size(249, 16);
|
|
this.lblCreated.TabIndex = 16;
|
|
//
|
|
// Form1
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.ClientSize = new System.Drawing.Size(716, 611);
|
|
this.Controls.Add(this.tableLayoutPanel1);
|
|
this.Controls.Add(this.txtRootDir);
|
|
this.Controls.Add(this.HNyRotKatalog);
|
|
this.Controls.Add(this.btnReOrganize);
|
|
this.Controls.Add(this.lstPicFiles);
|
|
this.Controls.Add(this.pictureBox1);
|
|
this.Controls.Add(this.btnFileDialog);
|
|
this.Name = "Form1";
|
|
this.Text = "Form1";
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|
this.tableLayoutPanel1.ResumeLayout(false);
|
|
this.tableLayoutPanel1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label HGrundpath;
|
|
private System.Windows.Forms.Label lblGroundPath;
|
|
private System.Windows.Forms.Label HSlutpath;
|
|
private System.Windows.Forms.Label lblFinalPath;
|
|
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
|
|
private System.Windows.Forms.Label lblCreated;
|
|
}
|
|
}
|
|
|