From 4bda45bab0c2945de330b7d0920c0c66e8fbbc4e Mon Sep 17 00:00:00 2001 From: Igor Zelmanovich Date: Wed, 15 Aug 2007 10:46:38 +0000 Subject: added new Mainsoft.Configuration module svn path=/trunk/mcs/; revision=84141 --- .../Mainsoft.Configuration.JavaEE.csproj | 76 ++++++++++++++++++++++ .../Mainsoft.Configuration.csproj | 49 ++++++++++++++ .../MainsoftWebSectionGroup.cs | 15 +++++ .../Mainsoft.Web.Configuration/PagesSection.cs | 20 ++++++ .../Properties/AssemblyInfo.cs | 35 ++++++++++ 5 files changed, 195 insertions(+) create mode 100644 mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.JavaEE.csproj create mode 100644 mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.csproj create mode 100644 mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/MainsoftWebSectionGroup.cs create mode 100644 mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/PagesSection.cs create mode 100644 mcs/class/Mainsoft.Configuration/Properties/AssemblyInfo.cs (limited to 'mcs/class/Mainsoft.Configuration') diff --git a/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.JavaEE.csproj b/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.JavaEE.csproj new file mode 100644 index 00000000000..c3d1d8e1e82 --- /dev/null +++ b/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.JavaEE.csproj @@ -0,0 +1,76 @@ + + + Debug_Java + AnyCPU + 8.0.50727 + 2.0 + {05391985-1646-4D19-BDEC-9C4550EB8E90} + {F6B19D50-1E2E-4e87-ADFB-10393B439DE0};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + Mainsoft.Configuration + 1.6 + 1 + 2.0 + false + + + Mainsoft.Configuration + ipa + + + + + true + full + false + bin\Debug_Java\ + DEBUG;TRACE;JAVA + prompt + 4 + 4194304 + false + false + 0 + AnyCPU + + + pdbonly + true + bin\Release_Java\ + TRACE;JAVA + prompt + 4 + 4194304 + false + false + 0 + AnyCPU + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.csproj b/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.csproj new file mode 100644 index 00000000000..6729829fd24 --- /dev/null +++ b/mcs/class/Mainsoft.Configuration/Mainsoft.Configuration.csproj @@ -0,0 +1,49 @@ + + + Debug + AnyCPU + 8.0.50727 + 2.0 + {A384DE21-09A4-4C80-99BC-2F08F9ADBA5C} + Library + Properties + Mainsoft.Configuration + Mainsoft.Configuration + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/MainsoftWebSectionGroup.cs b/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/MainsoftWebSectionGroup.cs new file mode 100644 index 00000000000..225d32b3747 --- /dev/null +++ b/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/MainsoftWebSectionGroup.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Configuration; + +namespace Mainsoft.Web.Configuration +{ + public class MainsoftWebSectionGroup : ConfigurationSectionGroup + { + [ConfigurationProperty ("pages")] + public PagesSection Pages { + get { return (PagesSection) Sections ["pages"]; } + } + } +} diff --git a/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/PagesSection.cs b/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/PagesSection.cs new file mode 100644 index 00000000000..6561ba2feca --- /dev/null +++ b/mcs/class/Mainsoft.Configuration/Mainsoft.Web.Configuration/PagesSection.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Text; +using System.Configuration; + +namespace Mainsoft.Web.Configuration +{ + public class PagesSection : ConfigurationSection + { + [ConfigurationPropertyAttribute ("multiForm", DefaultValue = false)] + public bool MultiForm { + get { + return (bool) this ["multiForm"]; + } + set { + this ["multiForm"] = value; + } + } + } +} diff --git a/mcs/class/Mainsoft.Configuration/Properties/AssemblyInfo.cs b/mcs/class/Mainsoft.Configuration/Properties/AssemblyInfo.cs new file mode 100644 index 00000000000..0246e59c301 --- /dev/null +++ b/mcs/class/Mainsoft.Configuration/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +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 ("Mainsoft.Configuration")] +[assembly: AssemblyDescription ("")] +[assembly: AssemblyConfiguration ("")] +[assembly: AssemblyCompany ("")] +[assembly: AssemblyProduct ("Mainsoft.Configuration")] +[assembly: AssemblyCopyright ("Copyright © 2007")] +[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 ("bb6e0097-9341-4bdb-8558-3c07daa6d3e1")] + +// 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 Revision and Build Numbers +// by using the '*' as shown below: +[assembly: AssemblyVersion ("1.0.0.0")] +[assembly: AssemblyFileVersion ("1.0.0.0")] -- cgit v1.2.3