Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            _chain.Viewer = null;
            _chain        = null;

            DragDrop.Dispose();
            DragDrop = null;
        }
Ejemplo n.º 3
0
        void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            FrameAdded    = null;
            FrameRemoved  = null;
            FrameSelected = null;
            Viewer        = null;

            DragDrop.Dispose();
            DragDrop = null;
        }
Ejemplo n.º 4
0
        protected virtual void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            ResetEvents();

            SpecificViewer = null;
            _device.Viewer = null;
            _device        = null;

            DeviceContextMenu = GroupContextMenu = ChokeContextMenu = null;

            DragDrop.Dispose();
            DragDrop = null;
        }
Ejemplo n.º 5
0
        void Unloaded(object sender, VisualTreeAttachmentEventArgs e)
        {
            Added = null;

            _track.ParentIndexChanged -= UpdateText;
            _track.Info = null;
            _track      = null;

            Rename.Dispose();
            Rename = null;

            DragDrop.Dispose();
            DragDrop = null;
        }
Ejemplo n.º 6
0
        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;
        }