Esempio n. 1
0
        private void listExp_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            //MessageBox.Show("change");
            ElementDisplay file = (ElementDisplay)listExp.SelectedItem;

            if (file == null)
            {
                return;
            }
            else
            {
                RefreshStackPanelInfo(file.Path);
            }
        }
Esempio n. 2
0
        private void Border_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (e.ClickCount == 2)
            {
                ElementDisplay element = (ElementDisplay)listExp.SelectedItem;
                if (!element.Name.Contains('.'))
                {
                    TreeNode node = new TreeNode
                    {
                        Path = element.Path,
                        Icon = element.Icon
                    };

                    RefreshDirStackPanel(element.Path);
                    Display(element.Path, null);
                }
                if (element.Path.Contains(".jpg"))
                {
                    PhotoViewer photoViewer = new PhotoViewer(element.Path);
                    photoViewer.Show();
                }
            }
        }