protected override LoadReturnCode OnLoad(ref string errorMessage)
            {
                //the following should always be the case, but just to be paranoid
                Pach_Splash splash = new Pach_Splash();

                splash.Show();
                splash.Refresh();
                System.Threading.Thread.Sleep(2000);
                new Pach_Properties();

                //TODO: find out if we can now create arrays greater than 2 GB...
                //Register the UserControl "Panels"
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_TD_Numeric_Control), "PachyDerm TimeDomain Models", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Hybrid_Control), "Pachyderm Hybrid Models", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Mapping_Control), "Pachyderm Mapping Method", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_MapCustom), "Pachyderm Custom Maps", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Visual_Control), "Pachyderm Particle Animation", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Auralisation), "Pachyderm Auralisation", Properties.Resources.PIcon1);
                //Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_SpeakerBuilder), "Pachyderm Speaker Builder", Properties.Resources.PIcon1);

                splash.Close();
                splash.Dispose();

                return(LoadReturnCode.Success);
            }
            protected override LoadReturnCode OnLoad(ref string errorMessage)            
            {
                //the following should always be the case, but just to be paranoid 
                Pach_Splash splash = new Pach_Splash();
                splash.Show();
                splash.Refresh();
                System.Threading.Thread.Sleep(2000);
                new Pach_Properties();

                //TODO: find out if we can now create arrays greater than 2 GB...
                //Register the UserControl "Panels"
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_TD_Numeric_Control), "PachyDerm TimeDomain Models", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Hybrid_Control), "Pachyderm Hybrid Models", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Mapping_Control), "Pachyderm Mapping Method", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_MapCustom), "Pachyderm Custom Maps", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Visual_Control), "Pachyderm Particle Animation", Properties.Resources.PIcon1);
                Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_Auralisation), "Pachyderm Auralisation", Properties.Resources.PIcon1);
                //Rhino.UI.Panels.RegisterPanel(this, typeof(UI.Pach_SpeakerBuilder), "Pachyderm Speaker Builder", Properties.Resources.PIcon1);

                splash.Close();
                splash.Dispose();

                return LoadReturnCode.Success;
            }