Beispiel #1
0
        private void RemoveDefinitionFileDirectory()
        {
            string theSelectedDirectory;

            Dvtk.Sessions.DefinitionFileDirectoryList theDefinitionFileDirectoryList = theSession.DefinitionManagement.DefinitionFileDirectoryList;
            theSelectedDirectory = (string)ListBoxSpecifySopClassesDefinitionFileDirectories.SelectedItem;
            theDefinitionFileDirectoryList.Remove(theSelectedDirectory);
            UpdateDataGrid((Dvtk.Sessions.ScriptSession)theSession);
        }
Beispiel #2
0
        public void RemoveDefinitionFileDirectory()
        {
            string theSelectedDirectory;

            DvtkApplicationLayer.Session theSession = GetSessionTreeViewManager().GetSession();
            Dvtk.Sessions.DefinitionFileDirectoryList theDefinitionFileDirectoryList = theSession.Implementation.DefinitionManagement.DefinitionFileDirectoryList;
            theSelectedDirectory = (string)_ListBoxDefinitionFileDirectories.SelectedItem;
            theDefinitionFileDirectoryList.Remove(theSelectedDirectory);
            theSession.HasSessionChanged = true;
            // Notify the rest of the world.
            // This will implicitly also update this specify SOP classes tab.
            // TO DO
            Update();
            SessionChange theSessionChange = new SessionChange(theSession, SessionChange.SessionChangeSubTypEnum.SOP_CLASSES_OTHER);

            Notify(theSessionChange);
        }