[mapguide-commits] r8748 - in trunk/Tools/Maestro/Maestro.AddIn.Rest: . Commands Model UI UI/Representation
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Aug 18 05:04:55 PDT 2015
Author: jng
Date: 2015-08-18 05:04:55 -0700 (Tue, 18 Aug 2015)
New Revision: 8748
Modified:
trunk/Tools/Maestro/Maestro.AddIn.Rest/Commands/StartupCommand.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/ExtensionMethods.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/Model/BoxedValue.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CruddableRepresentationCtrl.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CsvRepresentationCtrl.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/IRepresentationCtrl.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/ImageRepresentationCtrl.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/PermissionsCtrl.cs
trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/TemplateRepresentationCtrl.cs
Log:
#2565: Namespace cleanup on REST addin
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/Commands/StartupCommand.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/Commands/StartupCommand.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/Commands/StartupCommand.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,33 +1,28 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
using ICSharpCode.Core;
using Maestro.AddIn.Rest.UI;
using Maestro.Base;
using Maestro.Base.Services;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace Maestro.AddIn.Rest.Commands
{
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/ExtensionMethods.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/ExtensionMethods.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/ExtensionMethods.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,30 +1,26 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
using RestSharp;
using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Maestro.AddIn.Rest
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/Model/BoxedValue.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/Model/BoxedValue.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/Model/BoxedValue.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,29 +1,24 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
namespace Maestro.AddIn.Rest.Model
{
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/NewRepresentationDialog.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -23,13 +23,7 @@
using Maestro.AddIn.Rest.UI.Representation;
using System;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.Data;
-using System.Drawing;
using System.Dynamic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI
@@ -76,10 +70,7 @@
}
}
- private void btnCancel_Click(object sender, EventArgs e)
- {
- this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
- }
+ private void btnCancel_Click(object sender, EventArgs e) => this.DialogResult = DialogResult.Cancel;
private void btnSave_Click(object sender, EventArgs e)
{
@@ -93,7 +84,7 @@
dynamic conf = _ctrl.GetOptions();
((IDictionary<string, object>)repr)[_rep] = conf;
- this.DialogResult = System.Windows.Forms.DialogResult.OK;
+ this.DialogResult = DialogResult.OK;
}
}
}
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CruddableRepresentationCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CruddableRepresentationCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CruddableRepresentationCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,35 +1,28 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
+using Maestro.AddIn.Rest.Model;
using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
using System.Dynamic;
-using Maestro.AddIn.Rest.Model;
+using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI.Representation
{
@@ -107,24 +100,12 @@
tabs.TabPages.Add(TAB_DELETE);
}
- private void chkGet_CheckedChanged(object sender, EventArgs e)
- {
- this.CheckStates();
- }
+ private void chkGet_CheckedChanged(object sender, EventArgs e) => this.CheckStates();
- private void chkPost_CheckedChanged(object sender, EventArgs e)
- {
- this.CheckStates();
- }
+ private void chkPost_CheckedChanged(object sender, EventArgs e) => this.CheckStates();
- private void chkPut_CheckedChanged(object sender, EventArgs e)
- {
- this.CheckStates();
- }
+ private void chkPut_CheckedChanged(object sender, EventArgs e) => this.CheckStates();
- private void chkDelete_CheckedChanged(object sender, EventArgs e)
- {
- this.CheckStates();
- }
+ private void chkDelete_CheckedChanged(object sender, EventArgs e) => this.CheckStates();
}
}
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CsvRepresentationCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CsvRepresentationCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/CsvRepresentationCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,35 +1,27 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using System.Dynamic;
using Maestro.AddIn.Rest.Model;
+using System.Dynamic;
+using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI.Representation
{
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/IRepresentationCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/IRepresentationCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/IRepresentationCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,29 +1,24 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI.Representation
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/ImageRepresentationCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/ImageRepresentationCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/ImageRepresentationCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,35 +1,27 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using System.Dynamic;
using Maestro.AddIn.Rest.Model;
+using System.Dynamic;
+using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI.Representation
{
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/PermissionsCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/PermissionsCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/PermissionsCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,34 +1,29 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
+using Maestro.AddIn.Rest.Model;
using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
using System.Data;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.Windows.Forms;
-using Maestro.AddIn.Rest.Model;
namespace Maestro.AddIn.Rest.UI.Representation
{
@@ -39,10 +34,7 @@
InitializeComponent();
}
- public void Init(RestSourceContext context)
- {
- lstAllowGroups.DataSource = context.GetGroups();
- }
+ public void Init(RestSourceContext context) => lstAllowGroups.DataSource = context.GetGroups();
public void UpdateConfiguration(dynamic methodConfig)
{
Modified: trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/TemplateRepresentationCtrl.cs
===================================================================
--- trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/TemplateRepresentationCtrl.cs 2015-08-18 12:04:03 UTC (rev 8747)
+++ trunk/Tools/Maestro/Maestro.AddIn.Rest/UI/Representation/TemplateRepresentationCtrl.cs 2015-08-18 12:04:55 UTC (rev 8748)
@@ -1,35 +1,27 @@
-#region Disclaimer / License
-
-// Copyright (C) 2015, 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
-//
-
+#region Disclaimer / License
+
+// Copyright (C) 2015, 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 Disclaimer / License
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
-using System.Data;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows.Forms;
-using System.Dynamic;
using Maestro.AddIn.Rest.Model;
+using System.Dynamic;
+using System.Windows.Forms;
namespace Maestro.AddIn.Rest.UI.Representation
{
More information about the mapguide-commits
mailing list