Click here to Skip to main content
15,888,286 members
Articles / Web Development / HTML

Synchronicity - A Folder Synchronizing Application

Rate me:
Please Sign up or sign in to vote.
4.90/5 (29 votes)
7 Feb 2011CPOL25 min read 76.6K   3.5K   106  
Windows service for synchronizing folders
namespace SynchroSetup
{
	partial class FormAddSyncItem
	{
		/// <summary>
		/// Required designer variable.
		/// </summary>
		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.label1 = new System.Windows.Forms.Label();
			this.textBoxSyncFrom = new System.Windows.Forms.TextBox();
			this.label2 = new System.Windows.Forms.Label();
			this.buttonBrowseFrom = new System.Windows.Forms.Button();
			this.textBoxSyncTo = new System.Windows.Forms.TextBox();
			this.buttonBrowseTo = new System.Windows.Forms.Button();
			this.checkBoxIncludeSubs = new System.Windows.Forms.CheckBox();
			this.buttonOK = new System.Windows.Forms.Button();
			this.buttonCancel = new System.Windows.Forms.Button();
			this.checkBoxRemoveAfterSync = new System.Windows.Forms.CheckBox();
			this.checkBoxBackupBeforeSync = new System.Windows.Forms.CheckBox();
			this.label3 = new System.Windows.Forms.Label();
			this.textBoxBackupFolder = new System.Windows.Forms.TextBox();
			this.buttonBrowseBackup = new System.Windows.Forms.Button();
			this.label4 = new System.Windows.Forms.Label();
			this.textBoxName = new System.Windows.Forms.TextBox();
			this.checkBoxEnable = new System.Windows.Forms.CheckBox();
			this.labelHoverList = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.AutoSize = true;
			this.label1.Location = new System.Drawing.Point(13, 48);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(116, 13);
			this.label1.TabIndex = 3;
			this.label1.Text = "Sync FROM this folder:";
			// 
			// textBoxSyncFrom
			// 
			this.textBoxSyncFrom.Location = new System.Drawing.Point(136, 43);
			this.textBoxSyncFrom.Name = "textBoxSyncFrom";
			this.textBoxSyncFrom.Size = new System.Drawing.Size(341, 20);
			this.textBoxSyncFrom.TabIndex = 4;
			// 
			// label2
			// 
			this.label2.AutoSize = true;
			this.label2.Location = new System.Drawing.Point(13, 74);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(100, 13);
			this.label2.TabIndex = 6;
			this.label2.Text = "Sync TO this folder:";
			// 
			// buttonBrowseFrom
			// 
			this.buttonBrowseFrom.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.buttonBrowseFrom.Location = new System.Drawing.Point(484, 43);
			this.buttonBrowseFrom.Name = "buttonBrowseFrom";
			this.buttonBrowseFrom.Size = new System.Drawing.Size(32, 20);
			this.buttonBrowseFrom.TabIndex = 5;
			this.buttonBrowseFrom.Text = "...";
			this.buttonBrowseFrom.UseVisualStyleBackColor = true;
			this.buttonBrowseFrom.Click += new System.EventHandler(this.buttonBrowseFrom_Click);
			// 
			// textBoxSyncTo
			// 
			this.textBoxSyncTo.Location = new System.Drawing.Point(136, 70);
			this.textBoxSyncTo.Name = "textBoxSyncTo";
			this.textBoxSyncTo.Size = new System.Drawing.Size(341, 20);
			this.textBoxSyncTo.TabIndex = 7;
			// 
			// buttonBrowseTo
			// 
			this.buttonBrowseTo.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.buttonBrowseTo.Location = new System.Drawing.Point(484, 70);
			this.buttonBrowseTo.Name = "buttonBrowseTo";
			this.buttonBrowseTo.Size = new System.Drawing.Size(32, 20);
			this.buttonBrowseTo.TabIndex = 8;
			this.buttonBrowseTo.Text = "...";
			this.buttonBrowseTo.UseVisualStyleBackColor = true;
			this.buttonBrowseTo.Click += new System.EventHandler(this.buttonBrowseTo_Click);
			// 
			// checkBoxIncludeSubs
			// 
			this.checkBoxIncludeSubs.AutoSize = true;
			this.checkBoxIncludeSubs.Checked = true;
			this.checkBoxIncludeSubs.CheckState = System.Windows.Forms.CheckState.Checked;
			this.checkBoxIncludeSubs.Location = new System.Drawing.Point(16, 150);
			this.checkBoxIncludeSubs.Name = "checkBoxIncludeSubs";
			this.checkBoxIncludeSubs.Size = new System.Drawing.Size(115, 17);
			this.checkBoxIncludeSubs.TabIndex = 13;
			this.checkBoxIncludeSubs.Text = "Include sub-folders";
			this.checkBoxIncludeSubs.UseVisualStyleBackColor = true;
			// 
			// buttonOK
			// 
			this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.buttonOK.Location = new System.Drawing.Point(186, 225);
			this.buttonOK.Name = "buttonOK";
			this.buttonOK.Size = new System.Drawing.Size(75, 23);
			this.buttonOK.TabIndex = 16;
			this.buttonOK.Text = "OK";
			this.buttonOK.UseVisualStyleBackColor = true;
			this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
			// 
			// buttonCancel
			// 
			this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.buttonCancel.Location = new System.Drawing.Point(268, 225);
			this.buttonCancel.Name = "buttonCancel";
			this.buttonCancel.Size = new System.Drawing.Size(75, 23);
			this.buttonCancel.TabIndex = 17;
			this.buttonCancel.Text = "Cancel";
			this.buttonCancel.UseVisualStyleBackColor = true;
			this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
			// 
			// checkBoxRemoveAfterSync
			// 
			this.checkBoxRemoveAfterSync.AutoSize = true;
			this.checkBoxRemoveAfterSync.Location = new System.Drawing.Point(16, 195);
			this.checkBoxRemoveAfterSync.Name = "checkBoxRemoveAfterSync";
			this.checkBoxRemoveAfterSync.Size = new System.Drawing.Size(200, 17);
			this.checkBoxRemoveAfterSync.TabIndex = 15;
			this.checkBoxRemoveAfterSync.Text = "Remove \"FROM\" files after synching";
			this.checkBoxRemoveAfterSync.UseVisualStyleBackColor = true;
			// 
			// checkBoxBackupBeforeSync
			// 
			this.checkBoxBackupBeforeSync.AutoSize = true;
			this.checkBoxBackupBeforeSync.Location = new System.Drawing.Point(16, 173);
			this.checkBoxBackupBeforeSync.Name = "checkBoxBackupBeforeSync";
			this.checkBoxBackupBeforeSync.Size = new System.Drawing.Size(191, 17);
			this.checkBoxBackupBeforeSync.TabIndex = 14;
			this.checkBoxBackupBeforeSync.Text = "Backup \"TO\" files before replacing";
			this.checkBoxBackupBeforeSync.UseVisualStyleBackColor = true;
			// 
			// label3
			// 
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(13, 100);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(73, 13);
			this.label3.TabIndex = 9;
			this.label3.Text = "Backup folder";
			// 
			// textBoxBackupFolder
			// 
			this.textBoxBackupFolder.Location = new System.Drawing.Point(136, 97);
			this.textBoxBackupFolder.Name = "textBoxBackupFolder";
			this.textBoxBackupFolder.Size = new System.Drawing.Size(341, 20);
			this.textBoxBackupFolder.TabIndex = 10;
			// 
			// buttonBrowseBackup
			// 
			this.buttonBrowseBackup.Font = new System.Drawing.Font("Times New Roman", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
			this.buttonBrowseBackup.Location = new System.Drawing.Point(484, 97);
			this.buttonBrowseBackup.Name = "buttonBrowseBackup";
			this.buttonBrowseBackup.Size = new System.Drawing.Size(32, 20);
			this.buttonBrowseBackup.TabIndex = 11;
			this.buttonBrowseBackup.Text = "...";
			this.buttonBrowseBackup.UseVisualStyleBackColor = true;
			this.buttonBrowseBackup.Click += new System.EventHandler(this.buttonBrowseBackup_Click);
			// 
			// label4
			// 
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(13, 16);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(82, 13);
			this.label4.TabIndex = 0;
			this.label4.Text = "Sync item name";
			// 
			// textBoxName
			// 
			this.textBoxName.Location = new System.Drawing.Point(136, 13);
			this.textBoxName.Name = "textBoxName";
			this.textBoxName.Size = new System.Drawing.Size(180, 20);
			this.textBoxName.TabIndex = 1;
			// 
			// checkBoxEnable
			// 
			this.checkBoxEnable.AutoSize = true;
			this.checkBoxEnable.Checked = true;
			this.checkBoxEnable.CheckState = System.Windows.Forms.CheckState.Checked;
			this.checkBoxEnable.Location = new System.Drawing.Point(16, 127);
			this.checkBoxEnable.Name = "checkBoxEnable";
			this.checkBoxEnable.Size = new System.Drawing.Size(59, 17);
			this.checkBoxEnable.TabIndex = 12;
			this.checkBoxEnable.Text = "Enable";
			this.checkBoxEnable.UseVisualStyleBackColor = true;
			// 
			// labelHoverList
			// 
			this.labelHoverList.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.labelHoverList.Cursor = System.Windows.Forms.Cursors.Cross;
			this.labelHoverList.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
			this.labelHoverList.Location = new System.Drawing.Point(323, 13);
			this.labelHoverList.Name = "labelHoverList";
			this.labelHoverList.Size = new System.Drawing.Size(154, 20);
			this.labelHoverList.TabIndex = 2;
			this.labelHoverList.Text = "Hover Here For Current List";
			this.labelHoverList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			this.labelHoverList.MouseEnter += new System.EventHandler(this.labelHoverList_MouseEnter);
			// 
			// label5
			// 
			this.label5.Location = new System.Drawing.Point(280, 136);
			this.label5.Name = "label5";
			this.label5.Size = new System.Drawing.Size(236, 40);
			this.label5.TabIndex = 18;
			this.label5.Text = "All folder specified on this form MUST already  exist before attempting to run th" +
				"e service.";
			// 
			// FormAddSyncItem
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(528, 256);
			this.Controls.Add(this.label5);
			this.Controls.Add(this.labelHoverList);
			this.Controls.Add(this.checkBoxEnable);
			this.Controls.Add(this.textBoxName);
			this.Controls.Add(this.label4);
			this.Controls.Add(this.buttonBrowseBackup);
			this.Controls.Add(this.textBoxBackupFolder);
			this.Controls.Add(this.label3);
			this.Controls.Add(this.checkBoxBackupBeforeSync);
			this.Controls.Add(this.checkBoxRemoveAfterSync);
			this.Controls.Add(this.buttonCancel);
			this.Controls.Add(this.buttonOK);
			this.Controls.Add(this.checkBoxIncludeSubs);
			this.Controls.Add(this.buttonBrowseTo);
			this.Controls.Add(this.textBoxSyncTo);
			this.Controls.Add(this.buttonBrowseFrom);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.textBoxSyncFrom);
			this.Controls.Add(this.label1);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "FormAddSyncItem";
			this.ShowIcon = false;
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.Text = "FormAddSyncItem";
			this.Load += new System.EventHandler(this.FormAddSyncItem_Load);
			this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormAddSyncItem_FormClosing);
			this.ResumeLayout(false);
			this.PerformLayout();

		}

		#endregion

		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.TextBox textBoxSyncFrom;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button buttonBrowseFrom;
		private System.Windows.Forms.TextBox textBoxSyncTo;
		private System.Windows.Forms.Button buttonBrowseTo;
		private System.Windows.Forms.CheckBox checkBoxIncludeSubs;
		private System.Windows.Forms.Button buttonOK;
		private System.Windows.Forms.Button buttonCancel;
		private System.Windows.Forms.CheckBox checkBoxRemoveAfterSync;
		private System.Windows.Forms.CheckBox checkBoxBackupBeforeSync;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.TextBox textBoxBackupFolder;
		private System.Windows.Forms.Button buttonBrowseBackup;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox textBoxName;
		private System.Windows.Forms.CheckBox checkBoxEnable;
		private System.Windows.Forms.Label labelHoverList;
		private System.Windows.Forms.Label label5;
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Paddedwall Software
United States United States
I've been paid as a programmer since 1982 with experience in Pascal, and C++ (both self-taught), and began writing Windows programs in 1991 using Visual C++ and MFC. In the 2nd half of 2007, I started writing C# Windows Forms and ASP.Net applications, and have since done WPF, Silverlight, WCF, web services, and Windows services.

My weakest point is that my moments of clarity are too brief to hold a meaningful conversation that requires more than 30 seconds to complete. Thankfully, grunts of agreement are all that is required to conduct most discussions without committing to any particular belief system.

Comments and Discussions