/// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void OnDockChanged(object sender, DockChangedEventArgs e)
 {
     if (DockChanged != null)
         DockChanged(sender, e);
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DockingWindow_DockChanged(object sender, DockChangedEventArgs e)
        {
            DockingWindow oWnd = sender as DockingWindow;

            if (oWnd != null)
            {
                switch (oWnd.Name)
                {
                    case "ExplorerDockingWindow":
                        switch (oWnd.IsDocked)
                        {
                            case true:
                                tsb_etvw_Close.Visible = true;
                                tsb_tb_ExplorerWindow.Enabled = true;
                                ExplorerSplitterPanelCollapsed = (e.DockingWindowClosed);
                                break;
                            case false:
                                tsb_etvw_Close.Visible = false;
                                tsb_tb_ExplorerWindow.Enabled = false;
                                ExplorerSplitterPanelCollapsed = true;
                                break;
                        }
                        break;
                    case "ImageListDockingWindow":
                        switch (oWnd.IsDocked)
                        {
                            case true:
                                tsb_elvw_Close.Visible = true;
                                tsb_tb_ImageListWindow.Enabled = true;
                                ImageListSplitterPanelCollapsed = (e.DockingWindowClosed);
                                break;
                            case false:
                                tsb_elvw_Close.Visible = false;
                                tsb_tb_ImageListWindow.Enabled = false;
                                ImageListSplitterPanelCollapsed = true;
                                break;
                        }
                        switch (m_nImageListViewType)
                        {
                            case ImageListViewType.LargeIcons:
                                NativeMethods.SetListViewItemSpacing(elvw_Images,
                                    LVW_ICON_L_W, LVW_ICON_L_H);
                                break;
                            case ImageListViewType.MediumIcons:
                                NativeMethods.SetListViewItemSpacing(elvw_Images,
                                    LVW_ICON_M_W, LVW_ICON_M_H);
                                break;
                            case ImageListViewType.SmallIcons:
                                NativeMethods.SetListViewItemSpacing(elvw_Images,
                                    LVW_ICON_S_W, LVW_ICON_S_H);
                                break;
                        }
                        break;
                    case "TaskDockingWindow":
                        switch (oWnd.IsDocked)
                        {
                            case true:
                                tsb_task_Close.Visible = true;
                                tsb_tb_TasksWindow.Enabled = true;
                                TaskSplitterPanelCollapsed = (e.DockingWindowClosed);
                                break;
                            case false:
                                tsb_task_Close.Visible = false;
                                tsb_tb_TasksWindow.Enabled = false;
                                TaskSplitterPanelCollapsed = true;
                                break;
                        }                        
                        break;
                }
            }
        }