void Unloaded(object sender, CancelEventArgs e) { if (!SafeClose) { e.Cancel = true; _ = CloseForce(false); return; } Program.Project.Window = null; Timer.Stop(); Timer.Tick -= UpdateTime; Program.Project.PathChanged -= UpdateTitle; Program.Project.MacroChanged -= HandleMacro; Preferences.AlwaysOnTopChanged -= UpdateTopmost; Selection.Dispose(); DragDrop.Dispose(); DragDrop = null; foreach (IDisposable observable in observables) { observable.Dispose(); } this.Content = null; App.WindowClosed(this); }
void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { _chain.Viewer = null; _chain = null; DragDrop.Dispose(); DragDrop = null; }
void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { FrameAdded = null; FrameRemoved = null; FrameSelected = null; Viewer = null; DragDrop.Dispose(); DragDrop = null; }
protected virtual void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { ResetEvents(); SpecificViewer = null; _device.Viewer = null; _device = null; DeviceContextMenu = GroupContextMenu = ChokeContextMenu = null; DragDrop.Dispose(); DragDrop = null; }
void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { Added = null; _track.ParentIndexChanged -= UpdateText; _track.Info = null; _track = null; Rename.Dispose(); Rename = null; DragDrop.Dispose(); DragDrop = null; }
void Unloaded(object sender, VisualTreeAttachmentEventArgs e) { ChainAdded = null; ChainExpanded = null; _chain.ParentIndexChanged -= Rename.UpdateText; _chain.Info = null; _chain = null; Rename.Dispose(); Rename = null; DragDrop.Dispose(); DragDrop = null; }