// Close (aka Save) only if the FormClosing is not canceled and SolutionExplorer is not null or disposed
if (!e.Cancel && this.SolutionExplorer != null && !this.SolutionExplorer.IsDisposed)
{
this.SolutionExplorer.CloseSolution();
}
Last edit: jojorne 2018-10-03
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Settings.Default.LSLEditorSize = base.Size;
Settings.Default.LSLEditorLocation = base.Location;
Settings.Default.Save();
if (base.IsMdiContainer)
{
e.Cancel = this.CancelClosing;
}
else
{
e.Cancel = !this.CloseAllOpenWindows();
}
// Close (aka Save) only if the FormClosing is not canceled and SolutionExplorer is not null or disposed
if (!e.Cancel && this.SolutionExplorer != null && !this.SolutionExplorer.IsDisposed)
{
this.SolutionExplorer.CloseSolution();
}
Last edit: jojorne 2018-10-03