Exemple #1
0
        //Sangdd 10/08/2011
        /// <summary>
        /// Close dockablecontent
        /// </summary>
        /// <param name="contentToClose">Tra ve ten dockableconetn</param>
        void CloseThis(ManagedContent contentToClose)
        {
            if (GetManager() == null)
            {
                return;
            }

            if (contentToClose == null)
            {
                contentToClose = SelectedItem as ManagedContent;
            }


            DockableContent dockableContent = contentToClose as DockableContent;

            if (dockableContent != null)
            {
                dockableContent.Close();
            }
            else
            {
                DocumentContent documentContent = contentToClose as DocumentContent;
                documentContent.Close();
            }
        }