コード例 #1
0
        private void MainTreeView_Selected(object sender, RoutedEventArgs e)
        {
            topBar.AddBackList(topBar.pathTextBox.Text);
            topBar.ClearForwardStack();

            SelectTreeView((TreeViewItem)e.OriginalSource);
        }
コード例 #2
0
        private void TextBlock_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            //if (e.ChangedButton == MouseButton.Left && e.ClickCount == 2)
            {
                if (((StackPanel)sender).DataContext.ToString().IndexOf('.') == -1)
                {
                    topBar.AddBackList(path);
                    topBar.ClearForwardStack();

                    topBar.pathTextBox.Text = path + "\\" + ((StackPanel)sender).DataContext.ToString();
                    path = path + "\\" + ((StackPanel)sender).DataContext.ToString();
                    topBar.SetPath(path);

                    SetMainPage(path);
                }
                else
                {
                    Process.Start("explorer.exe", path + "\\" + ((StackPanel)sender).DataContext.ToString());
                }
            }
        }