protected override void Dispose(bool disposing) { if (disposing) { BaseFile?.Dispose(); } }
protected override void Dispose(bool disposing) { if (!LeaveOpen) { BaseFile?.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { if (Mode.HasFlag(OpenMode.Write)) { ParentFs.NotifyCloseWritableFile(); } BaseFile?.Dispose(); }
protected override void Dispose(bool disposing) { if (disposing) { BaseStorage.Flush(); BaseStorage.Dispose(); BaseFile?.Dispose(); } }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Save(); if (loadedFile != null) { loadedFile.Dispose(); } if (glHelper != null) { glHelper.Dispose(); } }