Close() 공개 메소드

public Close ( ) : void
리턴 void
예제 #1
0
        private void PerformQuickLook()
        {
            var selectedItem = WinExplorerHelper.GetSelectedItem();

            if (selectedItem == null || selectedItem == _currentItem)
            {
                if (_quickLookWindow?.CloseIfActive() ?? false)
                {
                    _currentItem     = null;
                    _quickLookWindow = null;
                }

                return;
            }

            _currentItem = selectedItem;

            _quickLookWindow?.Close();
            _quickLookWindow = null;

            _quickLookWindow = new QuickLookWindow();
            _quickLookWindow.Open(selectedItem);

            _quickLookWindow.Show();
        }
예제 #2
0
        protected override void OnExit(ExitEventArgs e)
        {
            base.OnExit(e);

            _quickLookWindow.Close();

            _keyboardHook?.Dispose();
            _notifyIcon?.Dispose();

            _mutex?.ReleaseMutex();
        }