Example #1
0
        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            _workspace.UpdateLastOpenedFiles(GetAllEditorStates().Select(f => f.FilePath));
            IEnumerable <EditorState> changes = GetChangedEditorStates();

            if (changes.Count() > 0)
            {
                e.Cancel = !CloseTabs(changes);
            }
        }