Why show messages info appManager1.LoadExtensions()?

Aug 26, 2013 at 6:12 PM
I try load .tif file with file .prj, I see that for it process is necessary add appManager to our aplication:
        public ApplicationForm()
        {
            InitializeComponent(); 
            //Load extensions            
            this.appManager1.LoadExtensions();            
        }
And I put two ways for load the file, one:
 private void AddLayer_Click(object sender, EventArgs e)
        {
                this.map.AddLayers();
                this.map.ZoomToMaxExtent();
                this.m_modeAplication = ModeAplication.Null;
         }
And another to understand how to load the map layers:
        private void AddTifLayerToolStripMenuItem_Click(object sender, EventArgs e)
        {          

           this.openFileDialog.Title = "Add Layer";
           this.openFileDialog.Filter= "(*.tif)|*.tif";
           if (this.openFileDialog.ShowDialog(this) == DialogResult.OK)
           {
                      IRaster fR = Raster.OpenFile(this.openFileDialog.FileName);
                       string prjFile = Path.ChangeExtension(this.openFileDialog.FileName, ".prj");                     
                       if (File.Exists(prjFile)) //projection file
                       {
                           fR.Projection = ProjectionInfo.Open(prjFile);
                       }
                       
                       this.map.Layers.Add(fR);//add to map
           }
When this.appManager1.LoadExtensions(); is runnig I recived MessageBox with:
Skipping extension DevExpress.XtraEditors.v12.2 ... The system can't find the file.
Downloading a Ribbon extension...
Downloading a DockManager extension..
Downloading a MenuBar extension..

A IDockManager extension must be included ...
A IHeaderControl extension must be included ...
A IStatusControl extension must be included...

How I can remove this messages?
I'm very lost! I know!

Bib: http://mudnug.wordpress.com/2011/11/23/how-to-support-loading-extensions-in-dotspatial/
Sep 3, 2013 at 1:52 PM
Hello,

Maybe can I help you...
appManager try to find DevExpress.Xtra... in the Application Extensions or Plugins folder (under bin).
Check that you have them (there are 7 .dll). These dll implements IDockManager extension IHeaderControl and IStatusControl that are mandatory to use appManager.
But you can also implement them by yourself, donwload he souce code and look at the plugin example given.

Let us now if you success...

Nat
Sep 4, 2013 at 3:46 PM
Hello Doub
I don't find on bin DevExpress.Xtra... dll's on DotSpatial 1.4 Extended.zip (https://dotspatial.codeplex.com/releases/view/92319)
I donwload the souce code, I see DotSpatial.Examples.LoadingExtensions, but doesn't say nothing of this. What example do you say?
Anyway, I want to implement these interfaces to control it from my application and not have to download from the internet.
I put IDockManager, IHeaderControl and IStatusControl in three class on my aplication but nothing.

This in my form
namespace AplicationSpace
{
    public partial class ApplicationForm : Form
    {
             InitializeComponent(); 
            //Load extensions            
            this.appManager1.LoadExtensions(); 
    }
}
And I implement the interfaces with the methods not Implemented, only to try.

IStatusControl
namespace AplicationSpace
{

    class MyStatusControl : IStatusControl
    {
        #region Miembros de IStatusControl
        /// <summary>
        /// add status panel 
        /// </summary>
        /// <param name="panel"></param>
        void IStatusControl.Add(StatusPanel panel)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// remove status panel
        /// </summary>
        /// <param name="panel"></param>
        void IStatusControl.Remove(StatusPanel panel)
        {
            throw new NotImplementedException();
        }

        #endregion

        #region Miembros de IProgressHandler
        /// <summary>
        /// Put progres 
        /// </summary>
        /// <param name="key">key panel</param>
        /// <param name="percent">percent progress</param>
        /// <param name="message">message app</param>
        void DotSpatial.Data.IProgressHandler.Progress(string key, int percent, string message)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
namespace AplicationSpace
{
    class MyHeaderControl:IHeaderControl
    {
        #region Miembros de IHeaderControl
        /// <summary>
        /// Add control to header  
        /// </summary>
        /// <param name="item"></param>
        void IHeaderControl.Add(HeaderItem item)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// remove control 
        /// </summary>
        /// <param name="key"></param>
        void IHeaderControl.Remove(string key)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// remove all control
        /// </summary>
        void IHeaderControl.RemoveAll()
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 
        /// </summary>
        event EventHandler<RootItemEventArgs> IHeaderControl.RootItemSelected
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }

        void IHeaderControl.SelectRoot(string key)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
namespace AplicationSpace
{

    public class MyDockManager : IDockManager
    {

        #region Miembros de IDockManager
        /// <summary>
        /// 
        /// </summary>
        event EventHandler<DockablePanelEventArgs> IDockManager.ActivePanelChanged
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="panel"></param>
        void IDockManager.Add(DockablePanel panel)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        void IDockManager.HidePanel(string key)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 
        /// </summary>
        event EventHandler<DockablePanelEventArgs> IDockManager.PanelAdded
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }
        /// <summary>
        /// 
        /// </summary>
        event EventHandler<DockablePanelEventArgs> IDockManager.PanelClosed
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }
        /// <summary>
        /// 
        /// </summary>
        event EventHandler<DockablePanelEventArgs> IDockManager.PanelRemoved
        {
            add { throw new NotImplementedException(); }
            remove { throw new NotImplementedException(); }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        void IDockManager.Remove(string key)
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 
        /// </summary>
        void IDockManager.ResetLayout()
        {
            throw new NotImplementedException();
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="key"></param>
        void IDockManager.SelectPanel(string key)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}