[mapguide-commits] r6032 - in trunk/Tools/Maestro/SDK/Samples: . DrawMap DwfInspector QueryFeatureSource SchemaViewer StandaloneWebLayoutEditor StandaloneWebLayoutEditor/Properties

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Aug 4 09:05:55 EDT 2011


Author: jng
Date: 2011-08-04 06:05:55 -0700 (Thu, 04 Aug 2011)
New Revision: 6032

Added:
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.Designer.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.resx
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/MyResourceEditorService.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Program.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/AssemblyInfo.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.Designer.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.resx
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.Designer.cs
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.settings
   trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/StandaloneWebLayoutEditor.csproj
Modified:
   trunk/Tools/Maestro/SDK/Samples/DrawMap/DrawMap.csproj
   trunk/Tools/Maestro/SDK/Samples/DrawMap/Form1.cs
   trunk/Tools/Maestro/SDK/Samples/DwfInspector/DwfInspector.csproj
   trunk/Tools/Maestro/SDK/Samples/DwfInspector/Form1.cs
   trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/Form1.cs
   trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/QueryFeatureSource.csproj
   trunk/Tools/Maestro/SDK/Samples/Samples.sln
   trunk/Tools/Maestro/SDK/Samples/SchemaViewer/Form1.cs
   trunk/Tools/Maestro/SDK/Samples/SchemaViewer/SchemaViewer.csproj
Log:
Add a new SDK sample: StandaloneWebLayoutEditor. This sample demonstrates the ability to use the resource editors outside of Maestro


Modified: trunk/Tools/Maestro/SDK/Samples/DrawMap/DrawMap.csproj
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/DrawMap/DrawMap.csproj	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/DrawMap/DrawMap.csproj	2011-08-04 13:05:55 UTC (rev 6032)
@@ -39,6 +39,10 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\Maestro.Login.dll</HintPath>
     </Reference>
+    <Reference Include="OSGeo.MapGuide.ExtendedObjectModels, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.ExtendedObjectModels.dll</HintPath>
+    </Reference>
     <Reference Include="OSGeo.MapGuide.MaestroAPI, Version=3.0.0.5728, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\OSGeo.MapGuide.MaestroAPI.dll</HintPath>

Modified: trunk/Tools/Maestro/SDK/Samples/DrawMap/Form1.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/DrawMap/Form1.cs	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/DrawMap/Form1.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -28,6 +28,7 @@
 using OSGeo.MapGuide.MaestroAPI;
 using OSGeo.MapGuide.MaestroAPI.Services;
 using OSGeo.MapGuide.ObjectModels.MapDefinition;
+using OSGeo.MapGuide.ExtendedObjectModels;
 
 namespace DrawMap
 {
@@ -42,6 +43,11 @@
 
         protected override void OnLoad(EventArgs e)
         {
+            //This call is a one-time only call that will instantly register all known resource 
+            //version types and validators. This way you never have to manually reference a 
+            //ObjectModels assembly of the desired resource type you want to work with
+            ModelSetup.Initialize();
+
             //Anytime we work with the Maestro API, we require an IServerConnection
             //reference. The Maestro.Login.LoginDialog provides a UI to obtain such a 
             //reference.

Modified: trunk/Tools/Maestro/SDK/Samples/DwfInspector/DwfInspector.csproj
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/DwfInspector/DwfInspector.csproj	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/DwfInspector/DwfInspector.csproj	2011-08-04 13:05:55 UTC (rev 6032)
@@ -39,6 +39,10 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\Maestro.Login.dll</HintPath>
     </Reference>
+    <Reference Include="OSGeo.MapGuide.ExtendedObjectModels, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.ExtendedObjectModels.dll</HintPath>
+    </Reference>
     <Reference Include="OSGeo.MapGuide.MaestroAPI, Version=3.0.0.5728, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\OSGeo.MapGuide.MaestroAPI.dll</HintPath>

Modified: trunk/Tools/Maestro/SDK/Samples/DwfInspector/Form1.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/DwfInspector/Form1.cs	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/DwfInspector/Form1.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -30,6 +30,7 @@
 using OSGeo.MapGuide.MaestroAPI.Services;
 using OSGeo.MapGuide.ObjectModels.DrawingSource;
 using OSGeo.MapGuide.ObjectModels;
+using OSGeo.MapGuide.ExtendedObjectModels;
 
 namespace DwfInspector
 {
@@ -45,6 +46,11 @@
 
         protected override void OnLoad(EventArgs e)
         {
+            //This call is a one-time only call that will instantly register all known resource 
+            //version types and validators. This way you never have to manually reference a 
+            //ObjectModels assembly of the desired resource type you want to work with
+            ModelSetup.Initialize();
+
             //Anytime we work with the Maestro API, we require an IServerConnection
             //reference. The Maestro.Login.LoginDialog provides a UI to obtain such a 
             //reference.

Modified: trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/Form1.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/Form1.cs	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/Form1.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -28,6 +28,7 @@
 using Maestro.Editors.Generic;
 using OSGeo.MapGuide.MaestroAPI.Feature;
 using OSGeo.MapGuide.MaestroAPI.Schema;
+using OSGeo.MapGuide.ExtendedObjectModels;
 
 namespace QueryFeatureSource
 {
@@ -42,6 +43,11 @@
 
         protected override void OnLoad(EventArgs e)
         {
+            //This call is a one-time only call that will instantly register all known resource 
+            //version types and validators. This way you never have to manually reference a 
+            //ObjectModels assembly of the desired resource type you want to work with
+            ModelSetup.Initialize();
+
             //Anytime we work with the Maestro API, we require an IServerConnection
             //reference. The Maestro.Login.LoginDialog provides a UI to obtain such a 
             //reference.

Modified: trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/QueryFeatureSource.csproj
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/QueryFeatureSource.csproj	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/QueryFeatureSource/QueryFeatureSource.csproj	2011-08-04 13:05:55 UTC (rev 6032)
@@ -39,6 +39,10 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\Maestro.Login.dll</HintPath>
     </Reference>
+    <Reference Include="OSGeo.MapGuide.ExtendedObjectModels, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.ExtendedObjectModels.dll</HintPath>
+    </Reference>
     <Reference Include="OSGeo.MapGuide.MaestroAPI, Version=3.0.0.5728, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\OSGeo.MapGuide.MaestroAPI.dll</HintPath>

Modified: trunk/Tools/Maestro/SDK/Samples/Samples.sln
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/Samples.sln	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/Samples.sln	2011-08-04 13:05:55 UTC (rev 6032)
@@ -9,6 +9,8 @@
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DwfInspector", "DwfInspector\DwfInspector.csproj", "{F568A956-4D93-46DF-856A-01883CA61CBB}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StandaloneWebLayoutEditor", "StandaloneWebLayoutEditor\StandaloneWebLayoutEditor.csproj", "{6C2F72BB-7B46-4D82-99AC-31A5840A869D}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -31,6 +33,10 @@
 		{F568A956-4D93-46DF-856A-01883CA61CBB}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{F568A956-4D93-46DF-856A-01883CA61CBB}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{F568A956-4D93-46DF-856A-01883CA61CBB}.Release|Any CPU.Build.0 = Release|Any CPU
+		{6C2F72BB-7B46-4D82-99AC-31A5840A869D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{6C2F72BB-7B46-4D82-99AC-31A5840A869D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{6C2F72BB-7B46-4D82-99AC-31A5840A869D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{6C2F72BB-7B46-4D82-99AC-31A5840A869D}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

Modified: trunk/Tools/Maestro/SDK/Samples/SchemaViewer/Form1.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/SchemaViewer/Form1.cs	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/SchemaViewer/Form1.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -27,6 +27,7 @@
 using Maestro.Editors.Generic;
 using OSGeo.MapGuide.MaestroAPI;
 using OSGeo.MapGuide.MaestroAPI.Schema;
+using OSGeo.MapGuide.ExtendedObjectModels;
 
 namespace SchemaViewer
 {
@@ -41,6 +42,11 @@
 
         protected override void OnLoad(EventArgs e)
         {
+            //This call is a one-time only call that will instantly register all known resource 
+            //version types and validators. This way you never have to manually reference a 
+            //ObjectModels assembly of the desired resource type you want to work with
+            ModelSetup.Initialize();
+
             //Anytime we work with the Maestro API, we require an IServerConnection
             //reference. The Maestro.Login.LoginDialog provides a UI to obtain such a 
             //reference.
@@ -69,6 +75,7 @@
             {
                 if (picker.ShowDialog() == DialogResult.OK)
                 {
+                    txtFeatureSource.Text = picker.ResourceID;
                     LoadFeatureSource(picker.ResourceID);
                 }
             }

Modified: trunk/Tools/Maestro/SDK/Samples/SchemaViewer/SchemaViewer.csproj
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/SchemaViewer/SchemaViewer.csproj	2011-08-04 12:19:32 UTC (rev 6031)
+++ trunk/Tools/Maestro/SDK/Samples/SchemaViewer/SchemaViewer.csproj	2011-08-04 13:05:55 UTC (rev 6032)
@@ -39,6 +39,10 @@
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\Maestro.Login.dll</HintPath>
     </Reference>
+    <Reference Include="OSGeo.MapGuide.ExtendedObjectModels, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.ExtendedObjectModels.dll</HintPath>
+    </Reference>
     <Reference Include="OSGeo.MapGuide.MaestroAPI, Version=3.0.0.5728, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
       <SpecificVersion>False</SpecificVersion>
       <HintPath>..\..\bin\OSGeo.MapGuide.MaestroAPI.dll</HintPath>

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.Designer.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.Designer.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.Designer.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,117 @@
+namespace StandaloneWebLayoutEditor
+{
+    partial class Form1
+    {
+        /// <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.menuStrip1 = new System.Windows.Forms.MenuStrip();
+            this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.openWebLayoutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.menuStrip1.SuspendLayout();
+            this.SuspendLayout();
+            // 
+            // menuStrip1
+            // 
+            this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.fileToolStripMenuItem});
+            this.menuStrip1.Location = new System.Drawing.Point(0, 0);
+            this.menuStrip1.Name = "menuStrip1";
+            this.menuStrip1.Size = new System.Drawing.Size(784, 24);
+            this.menuStrip1.TabIndex = 0;
+            this.menuStrip1.Text = "menuStrip1";
+            // 
+            // fileToolStripMenuItem
+            // 
+            this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
+            this.openWebLayoutToolStripMenuItem,
+            this.saveToolStripMenuItem,
+            this.exitToolStripMenuItem});
+            this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
+            this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 20);
+            this.fileToolStripMenuItem.Text = "File";
+            // 
+            // openWebLayoutToolStripMenuItem
+            // 
+            this.openWebLayoutToolStripMenuItem.Name = "openWebLayoutToolStripMenuItem";
+            this.openWebLayoutToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
+            this.openWebLayoutToolStripMenuItem.Text = "Open Web Layout";
+            this.openWebLayoutToolStripMenuItem.Click += new System.EventHandler(this.openWebLayoutToolStripMenuItem_Click);
+            // 
+            // saveToolStripMenuItem
+            // 
+            this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
+            this.saveToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
+            this.saveToolStripMenuItem.Text = "Save";
+            this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
+            // 
+            // exitToolStripMenuItem
+            // 
+            this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
+            this.exitToolStripMenuItem.Size = new System.Drawing.Size(169, 22);
+            this.exitToolStripMenuItem.Text = "Exit";
+            this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
+            // 
+            // panel1
+            // 
+            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
+            this.panel1.Location = new System.Drawing.Point(0, 24);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(784, 538);
+            this.panel1.TabIndex = 1;
+            // 
+            // Form1
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(784, 562);
+            this.Controls.Add(this.panel1);
+            this.Controls.Add(this.menuStrip1);
+            this.MainMenuStrip = this.menuStrip1;
+            this.Name = "Form1";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "Standalone Web Layout Editor Sample";
+            this.menuStrip1.ResumeLayout(false);
+            this.menuStrip1.PerformLayout();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.MenuStrip menuStrip1;
+        private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
+        private System.Windows.Forms.ToolStripMenuItem openWebLayoutToolStripMenuItem;
+        private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
+        private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
+        private System.Windows.Forms.Panel panel1;
+    }
+}
+

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,136 @@
+#region Disclaimer / License
+// Copyright (C) 2011, Jackie Ng
+// http://trac.osgeo.org/mapguide/wiki/maestro, jumpinjackie at gmail.com
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// 
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+// 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+// 
+#endregion
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+using OSGeo.MapGuide.MaestroAPI;
+using Maestro.Editors.Generic;
+using Maestro.Editors;
+using Maestro.Editors.WebLayout;
+using OSGeo.MapGuide.ExtendedObjectModels;
+
+namespace StandaloneWebLayoutEditor
+{
+    public partial class Form1 : Form
+    {
+        public Form1()
+        {
+            InitializeComponent();
+        }
+
+        private IServerConnection _conn;
+
+        /// <summary>
+        /// The IEditorService interface provides all the required services needed by any resource editor
+        /// </summary>
+        private IEditorService _edSvc;
+
+        protected override void OnLoad(EventArgs e)
+        {
+            //This call is a one-time only call that will instantly register all known resource 
+            //version types and validators. This way you never have to manually reference a 
+            //ObjectModels assembly of the desired resource type you want to work with
+            ModelSetup.Initialize();
+
+            //Anytime we work with the Maestro API, we require an IServerConnection
+            //reference. The Maestro.Login.LoginDialog provides a UI to obtain such a 
+            //reference.
+
+            //If you need to obtain an IServerConnection reference programmatically and
+            //without user intervention, use the ConnectionProviderRegistry class
+            var login = new Maestro.Login.LoginDialog();
+            if (login.ShowDialog() == DialogResult.OK)
+            {
+                _conn = login.Connection;
+            }
+            else //This sample does not work without an IServerConnection
+            {
+                Application.Exit();
+            }
+        }
+
+        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            Application.Exit();
+        }
+
+        private void openWebLayoutToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            //The ResourcePicker class, functions like a file dialog allowing the user
+            //to easily select a given resource. In our case, we want the user to select
+            //a Feature Source
+            using (var picker = new ResourcePicker(_conn.ResourceService,
+                                                   ResourceTypes.WebLayout,
+                                                   ResourcePickerMode.OpenResource))
+            {
+                if (picker.ShowDialog() == DialogResult.OK)
+                {
+                    LoadWebLayoutEditor(picker.ResourceID);
+                }
+            }
+        }
+
+        private void LoadWebLayoutEditor(string webLayoutId)
+        {
+            //Tear down existing editor service if needed
+            if (_edSvc != null)
+            {
+                _edSvc.DirtyStateChanged -= OnDirtyStateChanged;
+            }
+
+            _edSvc = new MyResourceEditorService(webLayoutId, _conn);
+            _edSvc.DirtyStateChanged += OnDirtyStateChanged;
+            //Each resource editor is named in the form: [Resource Type]EditorCtrl
+            var ed = new WebLayoutEditorCtrl();
+            ed.Dock = DockStyle.Fill;
+
+            panel1.Controls.Clear();
+            panel1.Controls.Add(ed);
+
+            //Bind() performs all the setup work. Do this after adding the control to whatever parent container
+            ed.Bind(_edSvc);
+        }
+
+        private void OnDirtyStateChanged(object sender, EventArgs e)
+        {
+            //Update title
+            if (!this.Text.EndsWith(" *"))
+                this.Text += " *";
+        }
+
+        private void saveToolStripMenuItem_Click(object sender, EventArgs e)
+        {
+            //The editor has been modify an in-memory model. This needs to be serialized back to
+            //the session copy first
+            _edSvc.SyncSessionCopy();
+            //Call save on the editor service to commit back the changes from the session copy
+            //back to the original resource
+            _edSvc.Save();
+            //Restore title
+            if (this.Text.EndsWith(" *"))
+                this.Text = this.Text.Substring(0, this.Text.Length - 2);
+            MessageBox.Show("Saved");
+        }
+    }
+}

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.resx
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.resx	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Form1.resx	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,123 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="menuStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+</root>
\ No newline at end of file

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/MyResourceEditorService.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/MyResourceEditorService.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/MyResourceEditorService.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,86 @@
+#region Disclaimer / License
+// Copyright (C) 2011, Jackie Ng
+// http://trac.osgeo.org/mapguide/wiki/maestro, jumpinjackie at gmail.com
+// 
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
+// 
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
+// 
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+// 
+#endregion
+using System;
+using System.Collections.Generic;
+using System.Text;
+using Maestro.Editors;
+using System.Diagnostics;
+using OSGeo.MapGuide.MaestroAPI;
+
+namespace StandaloneWebLayoutEditor
+{
+    /// <summary>
+    /// A simple implementation of <see cref="T:Maestro.Editors.ResourceEditorServiceBase"/>. Pretty much
+    /// all required methods here are non-essential and can be safely stubbed out.
+    /// </summary>
+    public class MyResourceEditorService : ResourceEditorServiceBase
+    {
+        public MyResourceEditorService(string resourceID, IServerConnection conn)
+            : base(resourceID, conn)
+        { }
+
+        /// <summary>
+        /// Called when an editor requires to open a particular resource. In Maestro, this would
+        /// spawn a new resource editor (or activate an existing one) for the selected resource id.
+        /// </summary>
+        /// <param name="resourceId"></param>
+        public override void OpenResource(string resourceId)
+        {
+            
+        }
+
+        /// <summary>
+        /// Called when an editor requires opening a url. 
+        /// </summary>
+        /// <param name="url"></param>
+        public override void OpenUrl(string url)
+        {
+            Process.Start(url);
+        }
+
+        /// <summary>
+        /// Called when the editor requires a refresh of the site explorer for a specific folder
+        /// </summary>
+        /// <param name="folderId"></param>
+        public override void RequestRefresh(string folderId)
+        {
+            
+        }
+
+        /// <summary>
+        /// Called when the editor requires a refresh of the entire site explorer
+        /// </summary>
+        public override void RequestRefresh()
+        {
+            
+        }
+
+        /// <summary>
+        /// Called when the editor needs to prompt the user to select an unmanaged resource. Currently not used
+        /// </summary>
+        /// <param name="startPath"></param>
+        /// <param name="fileTypes"></param>
+        /// <returns></returns>
+        public override string SelectUnmanagedData(string startPath, System.Collections.Specialized.NameValueCollection fileTypes)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Program.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Program.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Program.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Windows.Forms;
+
+namespace StandaloneWebLayoutEditor
+{
+    static class Program
+    {
+        /// <summary>
+        /// The main entry point for the application.
+        /// </summary>
+        [STAThread]
+        static void Main()
+        {
+            Application.EnableVisualStyles();
+            Application.SetCompatibleTextRenderingDefault(false);
+            Application.Run(new Form1());
+        }
+    }
+}

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/AssemblyInfo.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/AssemblyInfo.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -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("StandaloneWebLayoutEditor")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("StandaloneWebLayoutEditor")]
+[assembly: AssemblyCopyright("Copyright ©  2011")]
+[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("cedf5cf1-671a-4722-af3d-b05b3af4dba0")]
+
+// 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")]

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.Designer.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.Designer.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.Designer.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.4959
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace StandaloneWebLayoutEditor.Properties
+{
+
+
+    /// <summary>
+    ///   A strongly-typed resource class, for looking up localized strings, etc.
+    /// </summary>
+    // 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", "2.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()
+        {
+        }
+
+        /// <summary>
+        ///   Returns the cached ResourceManager instance used by this class.
+        /// </summary>
+        [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("StandaloneWebLayoutEditor.Properties.Resources", typeof(Resources).Assembly);
+                    resourceMan = temp;
+                }
+                return resourceMan;
+            }
+        }
+
+        /// <summary>
+        ///   Overrides the current thread's CurrentUICulture property for all
+        ///   resource lookups using this strongly typed resource class.
+        /// </summary>
+        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+        internal static global::System.Globalization.CultureInfo Culture
+        {
+            get
+            {
+                return resourceCulture;
+            }
+            set
+            {
+                resourceCulture = value;
+            }
+        }
+    }
+}

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.resx
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.resx	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Resources.resx	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+  <!-- 
+    Microsoft ResX Schema 
+    
+    Version 2.0
+    
+    The primary goals of this format is to allow a simple XML format 
+    that is mostly human readable. The generation and parsing of the 
+    various data types are done through the TypeConverter classes 
+    associated with the data types.
+    
+    Example:
+    
+    ... ado.net/XML headers & schema ...
+    <resheader name="resmimetype">text/microsoft-resx</resheader>
+    <resheader name="version">2.0</resheader>
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+        <value>[base64 mime encoded serialized .NET Framework object]</value>
+    </data>
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+        <comment>This is a comment</comment>
+    </data>
+                
+    There are any number of "resheader" rows that contain simple 
+    name/value pairs.
+    
+    Each data row contains a name, and value. The row also contains a 
+    type or mimetype. Type corresponds to a .NET class that support 
+    text/value conversion through the TypeConverter architecture. 
+    Classes that don't support this are serialized and stored with the 
+    mimetype set.
+    
+    The mimetype is used for serialized objects, and tells the 
+    ResXResourceReader how to depersist the object. This is currently not 
+    extensible. For a given mimetype the value must be set accordingly:
+    
+    Note - application/x-microsoft.net.object.binary.base64 is the format 
+    that the ResXResourceWriter will generate, however the reader can 
+    read any of the formats listed below.
+    
+    mimetype: application/x-microsoft.net.object.binary.base64
+    value   : The object must be serialized with 
+            : System.Serialization.Formatters.Binary.BinaryFormatter
+            : and then encoded with base64 encoding.
+    
+    mimetype: application/x-microsoft.net.object.soap.base64
+    value   : The object must be serialized with 
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+            : and then encoded with base64 encoding.
+
+    mimetype: application/x-microsoft.net.object.bytearray.base64
+    value   : The object must be serialized into a byte array 
+            : using a System.ComponentModel.TypeConverter
+            : and then encoded with base64 encoding.
+    -->
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+</root>
\ No newline at end of file

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.Designer.cs
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.Designer.cs	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.Designer.cs	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+//     This code was generated by a tool.
+//     Runtime Version:2.0.50727.4959
+//
+//     Changes to this file may cause incorrect behavior and will be lost if
+//     the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace StandaloneWebLayoutEditor.Properties
+{
+
+
+    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.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;
+            }
+        }
+    }
+}

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.settings
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.settings	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/Properties/Settings.settings	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+  <Profiles>
+    <Profile Name="(Default)" />
+  </Profiles>
+  <Settings />
+</SettingsFile>

Added: trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/StandaloneWebLayoutEditor.csproj
===================================================================
--- trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/StandaloneWebLayoutEditor.csproj	                        (rev 0)
+++ trunk/Tools/Maestro/SDK/Samples/StandaloneWebLayoutEditor/StandaloneWebLayoutEditor.csproj	2011-08-04 13:05:55 UTC (rev 6032)
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{6C2F72BB-7B46-4D82-99AC-31A5840A869D}</ProjectGuid>
+    <OutputType>WinExe</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>StandaloneWebLayoutEditor</RootNamespace>
+    <AssemblyName>StandaloneWebLayoutEditor</AssemblyName>
+    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+    <DebugSymbols>true</DebugSymbols>
+    <DebugType>full</DebugType>
+    <Optimize>false</Optimize>
+    <OutputPath>bin\Debug\</OutputPath>
+    <DefineConstants>DEBUG;TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+    <DebugType>pdbonly</DebugType>
+    <Optimize>true</Optimize>
+    <OutputPath>bin\Release\</OutputPath>
+    <DefineConstants>TRACE</DefineConstants>
+    <ErrorReport>prompt</ErrorReport>
+    <WarningLevel>4</WarningLevel>
+  </PropertyGroup>
+  <ItemGroup>
+    <Reference Include="Maestro.Editors, Version=3.5.0.5977, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\Maestro.Editors.dll</HintPath>
+    </Reference>
+    <Reference Include="Maestro.Login, Version=3.5.0.5977, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\Maestro.Login.dll</HintPath>
+    </Reference>
+    <Reference Include="OSGeo.MapGuide.ExtendedObjectModels, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.ExtendedObjectModels.dll</HintPath>
+    </Reference>
+    <Reference Include="OSGeo.MapGuide.MaestroAPI, Version=3.5.0.5977, Culture=neutral, PublicKeyToken=f526c48929fda856, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\bin\OSGeo.MapGuide.MaestroAPI.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Data" />
+    <Reference Include="System.Deployment" />
+    <Reference Include="System.Drawing" />
+    <Reference Include="System.Windows.Forms" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Form1.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="Form1.Designer.cs">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </Compile>
+    <Compile Include="MyResourceEditorService.cs" />
+    <Compile Include="Program.cs" />
+    <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="Form1.resx">
+      <DependentUpon>Form1.cs</DependentUpon>
+    </EmbeddedResource>
+    <EmbeddedResource Include="Properties\Resources.resx">
+      <Generator>ResXFileCodeGenerator</Generator>
+      <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+      <SubType>Designer</SubType>
+    </EmbeddedResource>
+    <Compile Include="Properties\Resources.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Resources.resx</DependentUpon>
+    </Compile>
+    <None Include="Properties\Settings.settings">
+      <Generator>SettingsSingleFileGenerator</Generator>
+      <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+    </None>
+    <Compile Include="Properties\Settings.Designer.cs">
+      <AutoGen>True</AutoGen>
+      <DependentUpon>Settings.settings</DependentUpon>
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>
+    </Compile>
+  </ItemGroup>
+  <ItemGroup>
+    <Content Include="..\..\bin\ConnectionProviders.xml">
+      <Link>ConnectionProviders.xml</Link>
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+    <Content Include="..\..\bin\OSGeo.MapGuide.MaestroAPI.Http.dll">
+      <Link>OSGeo.MapGuide.MaestroAPI.Http.dll</Link>
+      <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+    </Content>
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
+       Other similar extension points exist, see Microsoft.Common.targets.
+  <Target Name="BeforeBuild">
+  </Target>
+  <Target Name="AfterBuild">
+  </Target>
+  -->
+</Project>
\ No newline at end of file



More information about the mapguide-commits mailing list