Ejemplo n.º 1
0
        private void Ghost_Info_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason != CloseReason.UserClosing)
            {
                return;
            }

            _loadingPacifier.Text    = "Closing...";
            _loadingPacifier.Visible = true;
            Refresh();
            // Clear then dispose the listview to prevent a long freeze otherwise
            _cachedKeyframeList.Clear();
            _cachedVisibleKeyframeList.Clear();
            KeyframesListBox.Items.Clear();
            KeyframesListBox.Dispose();
            _loadingPacifier.Dispose();
        }