This project has moved and is read-only. For the latest updates, please go here.

New version of Plugin development documentation

Jun 26, 2012 at 5:34 PM

Is there a new version of hydrodesktop Plugin development guide documentation? I think this one on page http://hydrodesktop.codeplex.com/wikipage?title=Developing%20HydroDesktop%20plug-ins&referringTitle=Developer%20Documentation is out of  date.

Jun 27, 2012 at 10:34 AM
Hello,
The best documentation for plug-in development is on:
http://mudnug.wordpress.com/2012/01/27/how-to-create-an-extension-for-dotspatial-desktop-mapping-gis/

This short tutorial is for DotSpatial. HydroDesktop is built on the DotSpatial framework, so your plug-in (extension) will be fully recognized by HydroDesktop

See also other developer documentation on:
http://dotspatial.codeplex.com/wikipage?title=DotSpatial Tutorials

Jiri


On Tue, Jun 26, 2012 at 10:35 AM, coolkids1988918 <notifications@codeplex.com> wrote:

From: coolkids1988918

Is there a new version of hydrodesktop Plugin development guide documentation? I think this one on page http://hydrodesktop.codeplex.com/wikipage?title=Developing%20HydroDesktop%20plug-ins&referringTitle=Developer%20Documentation is out of date.

Read the full discussion online.

To add a post to this discussion, reply to this email (hydrodesktop@discussions.codeplex.com)

To start a new discussion for this project, email hydrodesktop@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
Jiří Kadlec
Geospatial Software Lab
Idaho State University
1-208-313-8076

Jun 28, 2012 at 2:17 PM

Well, I want to get the time series selector and add a new view panel to perform some data analysis, this one on page http://mudnug.wordpress.com/2012/01/27/how-to-create-an-extension-for-dotspatial-desktop-mapping-gis/ won't do much help. 

Jun 29, 2012 at 5:17 PM

Here the simple plugin, that added dock-panel  with one button, that shows count of checked series in series selector.

public class Plugin : Extension
    {
        /// <summary>
        /// Series Selector
        /// </summary>
        [Import("SeriesControl", typeof(ISeriesSelector))]
        public ISeriesSelector SeriesControl { get; set; }

        public override void Activate()
        {
            var userControl = new UserControl();
            var button = new Button {Text = "Button"};
            button.Click += delegate {
                                    MessageBox.Show(string.Format("Checked {0} ", SeriesControl.CheckedIDList.Count()));
                                };
            userControl.Controls.Add(button);

            App.DockManager.Add(new DockablePanel("Plugin_Key", "MyPlugin", userControl, DockStyle.Right));

            base.Activate();
        }

        public override void Deactivate()
        {
            // Remove all items that was added by plugin
            App.HeaderControl.RemoveAll();

            base.Deactivate();
        }
    }