From afb08f9a8691c7a3db7330ed3a3e00ccfa101b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tommy=20=C3=96man?= Date: Sun, 19 Jul 2020 21:54:26 +0200 Subject: [PATCH] Add project files. --- PictureHandling/App.config | 6 + PictureHandling/Form1.Designer.cs | 186 +++++++++++++ PictureHandling/Form1.cs | 253 ++++++++++++++++++ PictureHandling/LocalPicture.cs | 25 ++ PictureHandling/PictureHandling.csproj | 82 ++++++ PictureHandling/Program.cs | 22 ++ PictureHandling/Properties/AssemblyInfo.cs | 36 +++ .../Properties/Resources.Designer.cs | 71 +++++ PictureHandling/Properties/Resources.resx | 117 ++++++++ .../Properties/Settings.Designer.cs | 30 +++ PictureHandling/Properties/Settings.settings | 7 + PictureHandlingProject.sln | 25 ++ 12 files changed, 860 insertions(+) create mode 100644 PictureHandling/App.config create mode 100644 PictureHandling/Form1.Designer.cs create mode 100644 PictureHandling/Form1.cs create mode 100644 PictureHandling/LocalPicture.cs create mode 100644 PictureHandling/PictureHandling.csproj create mode 100644 PictureHandling/Program.cs create mode 100644 PictureHandling/Properties/AssemblyInfo.cs create mode 100644 PictureHandling/Properties/Resources.Designer.cs create mode 100644 PictureHandling/Properties/Resources.resx create mode 100644 PictureHandling/Properties/Settings.Designer.cs create mode 100644 PictureHandling/Properties/Settings.settings create mode 100644 PictureHandlingProject.sln diff --git a/PictureHandling/App.config b/PictureHandling/App.config new file mode 100644 index 0000000..56efbc7 --- /dev/null +++ b/PictureHandling/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/PictureHandling/Form1.Designer.cs b/PictureHandling/Form1.Designer.cs new file mode 100644 index 0000000..bb7beb7 --- /dev/null +++ b/PictureHandling/Form1.Designer.cs @@ -0,0 +1,186 @@ +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 label2; + private System.Windows.Forms.Label lblFileName; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.PictureBox pictureBox1; + private System.Windows.Forms.ListBox lstPicFiles; + private System.Windows.Forms.Label lblCreated; + private System.Windows.Forms.Button btnReOrganize; + + /// + /// Required designer variable. + /// + //private System.ComponentModel.Container components = null; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox txtRootDir; + private bool Deleting = false; + + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + 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(); + this.label2 = new System.Windows.Forms.Label(); + this.lblFileName = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.pictureBox1 = new System.Windows.Forms.PictureBox(); + this.lstPicFiles = new System.Windows.Forms.ListBox(); + this.lblCreated = new System.Windows.Forms.Label(); + this.btnReOrganize = new System.Windows.Forms.Button(); + this.label3 = new System.Windows.Forms.Label(); + this.txtRootDir = new System.Windows.Forms.TextBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); + this.SuspendLayout(); + // + // btnFileDialog + // + this.btnFileDialog.Location = new System.Drawing.Point(16, 56); + 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.Location = new System.Drawing.Point(160, 16); + this.lblPath.Name = "lblPath"; + this.lblPath.Size = new System.Drawing.Size(528, 23); + 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.TabIndex = 2; + this.label2.Text = "Path"; + // + // lblFileName + // + this.lblFileName.Location = new System.Drawing.Point(160, 48); + this.lblFileName.Name = "lblFileName"; + this.lblFileName.Size = new System.Drawing.Size(248, 23); + this.lblFileName.TabIndex = 3; + // + // label1 + // + this.label1.Location = new System.Drawing.Point(104, 48); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(56, 23); + 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.Location = new System.Drawing.Point(176, 88); + this.pictureBox1.Name = "pictureBox1"; + this.pictureBox1.Size = new System.Drawing.Size(512, 480); + this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; + this.pictureBox1.TabIndex = 5; + this.pictureBox1.TabStop = false; + // + // lstPicFiles + // + this.lstPicFiles.Location = new System.Drawing.Point(16, 88); + 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); + // + // lblCreated + // + this.lblCreated.Location = new System.Drawing.Point(424, 48); + this.lblCreated.Name = "lblCreated"; + this.lblCreated.Size = new System.Drawing.Size(264, 23); + this.lblCreated.TabIndex = 7; + this.lblCreated.Text = "Skapad: "; + // + // btnReOrganize + // + this.btnReOrganize.Enabled = false; + this.btnReOrganize.Location = new System.Drawing.Point(16, 496); + 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); + // + // label3 + // + this.label3.Location = new System.Drawing.Point(16, 528); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(128, 16); + this.label3.TabIndex = 9; + this.label3.Text = "Ny RotKatalog"; + // + // txtRootDir + // + this.txtRootDir.Location = new System.Drawing.Point(16, 544); + 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); + // + // Form1 + // + this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); + this.ClientSize = new System.Drawing.Size(704, 590); + this.Controls.Add(this.txtRootDir); + this.Controls.Add(this.label3); + this.Controls.Add(this.btnReOrganize); + this.Controls.Add(this.lblCreated); + this.Controls.Add(this.lstPicFiles); + this.Controls.Add(this.pictureBox1); + this.Controls.Add(this.label1); + this.Controls.Add(this.lblFileName); + 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"; + } + + + + #endregion + } +} + diff --git a/PictureHandling/Form1.cs b/PictureHandling/Form1.cs new file mode 100644 index 0000000..934cf99 --- /dev/null +++ b/PictureHandling/Form1.cs @@ -0,0 +1,253 @@ +using Microsoft.Win32; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Security.AccessControl; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PictureHandling +{ + public partial class Form1 : Form + { + public RegistryKey CU { get; set; } + public List pictureList = new List(); + public Form1() + { + InitializeComponent(); + //TestRegistryPermission(); + try + { + CU = Registry.CurrentUser; + RegistryKey PictureHandling = CU.OpenSubKey(@"SOFTWARE\IdoIt4u\PictureHandling"); + if (PictureHandling == null) + { + txtRootDir.Text = @"D:\OurPictures"; + } + else + { + txtRootDir.Text = (string)PictureHandling.GetValue(@"RootMap"); + } + } + catch (Exception ex) + { + + MessageBox.Show($"RegistryError: {ex}"); + } + + } + + private void txtRootDir_TextChanged(object sender, EventArgs e) + { + try + { + RegistryKey IdoIt4u = CU.OpenSubKey(@"SOFTWARE\IdoIt4u", true); + RegistryKey PictureHandling = null; + if (IdoIt4u != null) + { + PictureHandling = IdoIt4u.OpenSubKey(@"PictureHandling", true); + } + + if (PictureHandling == null) + { + if (IdoIt4u == null) + { + IdoIt4u = Registry.CurrentUser.CreateSubKey(@"Software\IdoIt4u", true); + } + else + PictureHandling = IdoIt4u.CreateSubKey(@"PictureHandling", true); + } + else + { + PictureHandling.SetValue(@"RootMap", txtRootDir.Text); + } + } + catch (Exception ex) + { + + MessageBox.Show($"RegistryError: {ex}"); + } + } + + private void btnReOrganize_Click(object sender, EventArgs e) + { + pictureList.Clear(); + bool error_upd = false; + //if (txtRootDir.Text.Trim().Substring(txtRootDir.Text.Trim().Length - 1) != @"\") + // txtRootDir.Text = txtRootDir.Text.Trim() + @"\"; + + txtRootDir.Text = txtRootDir.Text.Trim().EndsWith(@"\") ? txtRootDir.Text.Trim() : txtRootDir.Text.Trim() + @"\"; + + DirectoryInfo di = new DirectoryInfo(txtRootDir.Text); + + if (!di.Exists) di.Create(); + // om den nya rotkatalogen saknas skapa den + + Deleting = true; + // listboxen påverkas inte av denna + + pictureBox1.Image = null; + pictureBox1.Refresh(); + for (int i = lstPicFiles.Items.Count - 1; i > -1; i--) + { + var bufPicture = new LocalPicture(); + + //string lFileName = lstPicFiles.Items[i].ToString().Trim(); + bufPicture.PictureFileName= lstPicFiles.Items[i].ToString().Trim(); + + //string fName = lblPath.Text.Trim() + lFileName; + bufPicture.InitialPath = lblPath.Text.Trim(); + + lblFileName.Text = bufPicture.PictureFullPath; + + //Image actIm = Image.FromFile(fName, true); + bufPicture.AktImage = Image.FromFile(bufPicture.PictureFullPath); + + //int w = actIm.Width; + //int h = actIm.Height; + bufPicture.AktImWidth = bufPicture.AktImage.Width; + bufPicture.AktImHeight = bufPicture.AktImage.Height; + + + int pw = pictureBox1.Width; + int ph = pictureBox1.Height; + pictureBox1.SizeMode = PictureBoxSizeMode.Normal; + Bitmap to_bm = new Bitmap((Image)bufPicture.AktImage.Clone(), bufPicture.AktImWidth * ph / bufPicture.AktImHeight, ph); + pictureBox1.Image = to_bm; + string td = TakenDate(bufPicture.AktImage); + + //actIm.Dispose(); + if (td.Trim() != "") + { + lblCreated.Text = "Skapad: " + td; + td = td.Substring(0, 10); + DateTime dttd = DateTime.Parse(td.Replace(":", "-")); + string subDir1 = dttd.Year.ToString("0000") + "-" + dttd.Month.ToString("00") + @"\"; + string subDir2 = dttd.Year.ToString("0000") + "_" + dttd.Month.ToString("00") + "_" + dttd.Day.ToString("00") + @"\"; + DirectoryInfo dis = new DirectoryInfo(di.FullName + subDir1); + if (!dis.Exists) dis.Create(); + DirectoryInfo diss = new DirectoryInfo(dis.FullName + subDir2); + if (!diss.Exists) diss.Create(); + + FileInfo fi = new FileInfo(fName); + //Tommy + fi.CopyTo(diss.FullName + lFileName); + error_upd = false; + do + { + error_upd = false; + try + { + lstPicFiles.BeginUpdate(); + } + catch + { + error_upd = true; + } + } + while (error_upd); + lstPicFiles.Items.RemoveAt(i); + lstPicFiles.EndUpdate(); + lstPicFiles.Refresh(); + lblCreated.Refresh(); + lblFileName.Refresh(); + pictureBox1.Refresh(); + this.Refresh(); + } + } + Deleting = false; + lblCreated.Text = ""; + lblFileName.Text = ""; + lblPath.Text = ""; + btnReOrganize.Enabled = false; + } + + private void lstPicFiles_SelectedIndexChanged(object sender, EventArgs e) + { + if (!Deleting) + { + string fName = ((ListBox)sender).SelectedItem.ToString(); + lblFileName.Text = fName; + Image actPic = Image.FromFile(lblPath.Text + fName, true); + lblCreated.Text = "Skapad: " + TakenDate(actPic); + int w = actPic.Width; + int h = actPic.Height; + int pw = pictureBox1.Width; + int ph = pictureBox1.Height; + pictureBox1.SizeMode = PictureBoxSizeMode.Normal; + Bitmap to_bm = new Bitmap((Image)actPic.Clone(), w * ph / h, ph); + pictureBox1.Image = to_bm; + actPic = null; + + } + } + + private string TakenDate(Image actPic) + { + string sPropDatTaken = ""; + for (int i = 0; i < actPic.PropertyIdList.Length; i++) + { + if (actPic.PropertyIdList[i] == 306) + { + for (int j = 0; j < actPic.PropertyItems[i].Len; j++) + { + sPropDatTaken += Convert.ToChar(actPic.PropertyItems[i].Value[j]); + } + } + } + //actPic.Dispose(); + return sPropDatTaken; + } + + private void btnFileDialog_Click(object sender, EventArgs e) + { + openFileDialog1.Title = "Välj bild-fil!"; + openFileDialog1.InitialDirectory = "C:\\"; + openFileDialog1.Filter = "Picture files (*.jpg)|*.jpg;*.jpeg|All files (*.*)|*.*"; + openFileDialog1.FilterIndex = 1; + openFileDialog1.RestoreDirectory = true; + openFileDialog1.ShowDialog(); + openFileDialog1.Multiselect = false; + string fName = openFileDialog1.FileName; + if (fName.Trim() != "") + { + int fNamePos = fName.LastIndexOf(@"\") + 1; + lblFileName.Text = fName.Substring(fNamePos); + lblPath.Text = fName.Substring(0, fNamePos); + listLocalFiles(); + + for (int i = 0; i < lstPicFiles.Items.Count; i++) + { + if (lstPicFiles.Items[i].ToString() == lblFileName.Text) + { + lstPicFiles.SelectedIndex = i; + break; + } + } + + } + } + + private void listLocalFiles() + { + DirectoryInfo di = new DirectoryInfo(lblPath.Text); + List files = new List(); + files.AddRange( di.GetFiles("*.jpg")); + files.AddRange(di.GetFiles("*.jpeg")); + + lstPicFiles.Items.Clear(); + foreach (var item in files) + { + lstPicFiles.Items.Add(item.Name); + } + btnReOrganize.Enabled = true; + } + + } +} diff --git a/PictureHandling/LocalPicture.cs b/PictureHandling/LocalPicture.cs new file mode 100644 index 0000000..cc95315 --- /dev/null +++ b/PictureHandling/LocalPicture.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace PictureHandling +{ + public class LocalPicture + { + public string PictureFileName { get; set; } + public string InitialPath { get; set; } + public string PictureFullPath { + get { + return Path.Combine(InitialPath, PictureFileName); + } + } + public Image AktImage { get; set; } + public int AktImWidth { get; set; } + public int AktImHeight { get; set; } + + } +} diff --git a/PictureHandling/PictureHandling.csproj b/PictureHandling/PictureHandling.csproj new file mode 100644 index 0000000..9535afc --- /dev/null +++ b/PictureHandling/PictureHandling.csproj @@ -0,0 +1,82 @@ + + + + + Debug + AnyCPU + {E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087} + WinExe + PictureHandling + PictureHandling + v4.7.2 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + false + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/PictureHandling/Program.cs b/PictureHandling/Program.cs new file mode 100644 index 0000000..63347bb --- /dev/null +++ b/PictureHandling/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace PictureHandling +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new Form1()); + } + } +} diff --git a/PictureHandling/Properties/AssemblyInfo.cs b/PictureHandling/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e024ffe --- /dev/null +++ b/PictureHandling/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PictureHandling")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PictureHandling")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("e58e5cdd-88c0-45d3-b2e1-e27ceffdd087")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PictureHandling/Properties/Resources.Designer.cs b/PictureHandling/Properties/Resources.Designer.cs new file mode 100644 index 0000000..4fee702 --- /dev/null +++ b/PictureHandling/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PictureHandling.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PictureHandling.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/PictureHandling/Properties/Resources.resx b/PictureHandling/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/PictureHandling/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PictureHandling/Properties/Settings.Designer.cs b/PictureHandling/Properties/Settings.Designer.cs new file mode 100644 index 0000000..868a947 --- /dev/null +++ b/PictureHandling/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace PictureHandling.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/PictureHandling/Properties/Settings.settings b/PictureHandling/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/PictureHandling/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/PictureHandlingProject.sln b/PictureHandlingProject.sln new file mode 100644 index 0000000..4495256 --- /dev/null +++ b/PictureHandlingProject.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30225.117 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PictureHandling", "PictureHandling\PictureHandling.csproj", "{E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E58E5CDD-88C0-45D3-B2E1-E27CEFFDD087}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {8B92BE04-61D9-4E94-9DB8-19CB29747DD7} + EndGlobalSection +EndGlobal