Click here to Skip to main content
15,892,674 members
Articles / Desktop Programming / Windows Forms

A Tool to Strip Zips of Unwanted Files before Submitting to CodeProject - Version 2

Rate me:
Please Sign up or sign in to vote.
4.17/5 (6 votes)
24 Dec 2008CPOL8 min read 32.2K   329   19  
An article on some minor modifications to CPZipStripper
// ******************************************************************
//
//	If this code works it was written by:
//		Henry Minute
//		MamSoft / Manniff Computers
//		© 2008 - 2008...
//
//	if not, I have no idea who wrote it.
//
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Text;

namespace CPZipStripper
{
	internal sealed class CPZipStripperSettings : ApplicationSettingsBase
	{
		// If you used [ApplicationScopedSetting()] instead of [UserScopedSetting()],
		// you would NOT be able to persist any data changes!
		[UserScopedSetting()]
		[SettingsSerializeAs(System.Configuration.SettingsSerializeAs.String)]
		[DefaultSettingValue("notepad.exe")]
		public string XmlEditor
		{
			get
			{
				return ((string)this["XmlEditor"]);
			}

			set
			{
				this["XmlEditor"] = value;
			}
		}

		// If you used [ApplicationScopedSetting()] instead of [UserScopedSetting()],
		// you would NOT be able to persist any data changes!
		[UserScopedSetting()]
		[SettingsSerializeAs(System.Configuration.SettingsSerializeAs.String)]
		[DefaultSettingValue("false")]
		public bool SetByUser
		{
			get
			{
				return (bool)this["SetByUser"];
			}

			set
			{
				this["SetByUser"] = value;
			}
		}
	}
}

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
Retired
United Kingdom United Kingdom
Retired Systems Admin, Programmer, Dogsbody.
Mainly on Systems for Local Government, Health Authorities,
Insurance Industry - (COBOL eeeeeeeugh).
Inventor of Synchronized Shopping.

Comments and Discussions