Open() public method

public Open ( string fileName ) : void
fileName string
return void
コード例 #1
0
ファイル: App.xaml.cs プロジェクト: GetMyMacOn/WinQuickLook
        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
        private void PerformQuickLook()
        {
            var selectedItem = WinExplorerHelper.GetSelectedItem();

            if (selectedItem == null || selectedItem == _currentItem)
            {
                if (_quickLookWindow.HideIfVisible())
                {
                    _currentItem = null;
                }

                return;
            }

            _currentItem = selectedItem;

            _quickLookWindow.Open(selectedItem);
            _quickLookWindow.Show();
        }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: GetMyMacOn/WinQuickLook
        private void ChangeQuickLook()
        {
            if (_quickLookWindow == null)
            {
                return;
            }

            var selectedItem = WinExplorerHelper.GetSelectedItem();

            if (selectedItem == null || selectedItem == _currentItem)
            {
                return;
            }

            _currentItem = selectedItem;

            _quickLookWindow?.Close();
            _quickLookWindow = null;

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

            _quickLookWindow.Show();
        }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: shibayan/WinQuickLook
        private void ChangeQuickLook()
        {
            if (_quickLookWindow == null)
            {
                return;
            }

            var selectedItem = WinExplorerHelper.GetSelectedItem();

            if (selectedItem == null || selectedItem == _currentItem)
            {
                return;
            }

            _currentItem = selectedItem;

            _quickLookWindow?.Close();
            _quickLookWindow = null;

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

            _quickLookWindow.Show();
        }
コード例 #5
0
ファイル: App.xaml.cs プロジェクト: shibayan/WinQuickLook
        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();
        }