public static void Close(LispEditor editor) { if (editor != null) { string path = editor.FilePath; string name = editor.Text; editor.Close(); OnFileClosed(path, name, editor); } }
public static void CloseAll(IDockContent[] editors) { foreach (IDockContent editor in editors) { LispEditor leditor = editor as LispEditor; if (leditor != null) { string path = leditor.FilePath; string name = leditor.Text; leditor.Close(); OnFileClosed(path, name, leditor); } } }