コード例 #1
0
        /// <summary>
        /// Close TracerWindow.
        /// </summary>
        private static void CloseUnloadedWindows(DockPanel dockPanel)
        {
            List<DockContent> list = new List<DockContent>();
            foreach (DockContent content in dockPanel.Contents)
            {
                if (!(content is EcellDockContent))
                    list.Add(content);
            }
            if (list.Count <= 0)
                return;

            foreach (DockContent content in list)
                content.Close();

            dockPanel.Refresh();
        }