private void close() { if (model != null) { foreach (ModelFolder folder in model.Folders) { foreach (object item in folder.Items) { if (item is ModelClass) { ModelClass c = (ModelClass)item; if (c.Editor != null) { ClassEditor editor = (ClassEditor)c.Editor; editor.Close(); } } else if (item is EnumEditor) { ModelEnum e = (ModelEnum)item; if (e.Editor != null) { EnumEditor editor = (EnumEditor)e.Editor; editor.Close(); } } } } // // Clear DataTypes! // DataTypeManager.Clear(); mExplorer.Clear(); } }