Ejemplo n.º 1
0
        private static void PathChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
        {
            FolderPickerDialog dialog = (FolderPickerDialog)sender;

            if (args.NewValue != null)
            {
                MainWindow owner = dialog.Owner as MainWindow;
                TraceLab.Core.Components.TraceLabFilePath filePath = args.NewValue as TraceLab.Core.Components.TraceLabFilePath;
            }
        }
Ejemplo n.º 2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FilePickerTopLevel = ((TraceLab.UI.WPF.Views.FolderPickerDialog)(target));

            #line 33 "..\..\..\Views\FolderPickerDialog.xaml"
                this.FilePickerTopLevel.Loaded += new System.Windows.RoutedEventHandler(this.FolderPickerLoaded);

            #line default
            #line hidden
                return;

            case 2:
                this.DiskExpander = ((System.Windows.Controls.Expander)(target));

            #line 89 "..\..\..\Views\FolderPickerDialog.xaml"
                this.DiskExpander.Expanded += new System.Windows.RoutedEventHandler(this.DiskExpander_Expanded);

            #line default
            #line hidden

            #line 89 "..\..\..\Views\FolderPickerDialog.xaml"
                this.DiskExpander.Collapsed += new System.Windows.RoutedEventHandler(this.DiskExpander_Collapsed);

            #line default
            #line hidden
                return;

            case 3:

            #line 91 "..\..\..\Views\FolderPickerDialog.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BrowseButtonClick);

            #line default
            #line hidden
                return;

            case 4:
                this.PathTextBox = ((System.Windows.Controls.TextBox)(target));

            #line 94 "..\..\..\Views\FolderPickerDialog.xaml"
                this.PathTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.PackageExpander = ((System.Windows.Controls.Expander)(target));

            #line 99 "..\..\..\Views\FolderPickerDialog.xaml"
                this.PackageExpander.Expanded += new System.Windows.RoutedEventHandler(this.PackageExpander_Expanded);

            #line default
            #line hidden

            #line 99 "..\..\..\Views\FolderPickerDialog.xaml"
                this.PackageExpander.Collapsed += new System.Windows.RoutedEventHandler(this.PackageExpander_Collapsed);

            #line default
            #line hidden
                return;

            case 6:
                this.PackageFileChooser = ((System.Windows.Controls.TreeView)(target));

            #line 100 "..\..\..\Views\FolderPickerDialog.xaml"
                this.PackageFileChooser.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.TreeView_IsVisibleChanged);

            #line default
            #line hidden

            #line 101 "..\..\..\Views\FolderPickerDialog.xaml"
                this.PackageFileChooser.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.PkgFolderChooser_SelectedItemChanged);

            #line default
            #line hidden
                return;

            case 7:
                this.ReferencesBinding = ((System.Windows.Data.Binding)(target));
                return;

            case 8:
                this.SelectButton = ((System.Windows.Controls.Button)(target));

            #line 116 "..\..\..\Views\FolderPickerDialog.xaml"
                this.SelectButton.Click += new System.Windows.RoutedEventHandler(this.SelectClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.FilePickerTopLevel = ((TraceLab.UI.WPF.Views.FolderPickerDialog)(target));
     
     #line 33 "..\..\..\Views\FolderPickerDialog.xaml"
     this.FilePickerTopLevel.Loaded += new System.Windows.RoutedEventHandler(this.FolderPickerLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.DiskExpander = ((System.Windows.Controls.Expander)(target));
     
     #line 89 "..\..\..\Views\FolderPickerDialog.xaml"
     this.DiskExpander.Expanded += new System.Windows.RoutedEventHandler(this.DiskExpander_Expanded);
     
     #line default
     #line hidden
     
     #line 89 "..\..\..\Views\FolderPickerDialog.xaml"
     this.DiskExpander.Collapsed += new System.Windows.RoutedEventHandler(this.DiskExpander_Collapsed);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 91 "..\..\..\Views\FolderPickerDialog.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BrowseButtonClick);
     
     #line default
     #line hidden
     return;
     case 4:
     this.PathTextBox = ((System.Windows.Controls.TextBox)(target));
     
     #line 94 "..\..\..\Views\FolderPickerDialog.xaml"
     this.PathTextBox.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextBox_TextChanged);
     
     #line default
     #line hidden
     return;
     case 5:
     this.PackageExpander = ((System.Windows.Controls.Expander)(target));
     
     #line 99 "..\..\..\Views\FolderPickerDialog.xaml"
     this.PackageExpander.Expanded += new System.Windows.RoutedEventHandler(this.PackageExpander_Expanded);
     
     #line default
     #line hidden
     
     #line 99 "..\..\..\Views\FolderPickerDialog.xaml"
     this.PackageExpander.Collapsed += new System.Windows.RoutedEventHandler(this.PackageExpander_Collapsed);
     
     #line default
     #line hidden
     return;
     case 6:
     this.PackageFileChooser = ((System.Windows.Controls.TreeView)(target));
     
     #line 100 "..\..\..\Views\FolderPickerDialog.xaml"
     this.PackageFileChooser.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.TreeView_IsVisibleChanged);
     
     #line default
     #line hidden
     
     #line 101 "..\..\..\Views\FolderPickerDialog.xaml"
     this.PackageFileChooser.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.PkgFolderChooser_SelectedItemChanged);
     
     #line default
     #line hidden
     return;
     case 7:
     this.ReferencesBinding = ((System.Windows.Data.Binding)(target));
     return;
     case 8:
     this.SelectButton = ((System.Windows.Controls.Button)(target));
     
     #line 116 "..\..\..\Views\FolderPickerDialog.xaml"
     this.SelectButton.Click += new System.Windows.RoutedEventHandler(this.SelectClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }