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

            if (args.NewValue != null)
            {
                MainWindow owner = dialog.Owner as MainWindow;
                TraceLab.Core.Components.TraceLabFilePath filePath = args.NewValue as TraceLab.Core.Components.TraceLabFilePath;
            }
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.FilePickerTopLevel = ((TraceLab.UI.WPF.Views.FilePickerDialog)(target));
     
     #line 33 "..\..\..\Views\FilePickerDialog.xaml"
     this.FilePickerTopLevel.Loaded += new System.Windows.RoutedEventHandler(this.FilePickerLoaded);
     
     #line default
     #line hidden
     return;
     case 2:
     this.DiskExpander = ((System.Windows.Controls.Expander)(target));
     
     #line 88 "..\..\..\Views\FilePickerDialog.xaml"
     this.DiskExpander.Expanded += new System.Windows.RoutedEventHandler(this.DiskExpander_Expanded);
     
     #line default
     #line hidden
     
     #line 88 "..\..\..\Views\FilePickerDialog.xaml"
     this.DiskExpander.Collapsed += new System.Windows.RoutedEventHandler(this.DiskExpander_Collapsed);
     
     #line default
     #line hidden
     return;
     case 3:
     
     #line 90 "..\..\..\Views\FilePickerDialog.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 93 "..\..\..\Views\FilePickerDialog.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 98 "..\..\..\Views\FilePickerDialog.xaml"
     this.PackageExpander.Expanded += new System.Windows.RoutedEventHandler(this.PackageExpander_Expanded);
     
     #line default
     #line hidden
     
     #line 98 "..\..\..\Views\FilePickerDialog.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 99 "..\..\..\Views\FilePickerDialog.xaml"
     this.PackageFileChooser.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.TreeView_IsVisibleChanged);
     
     #line default
     #line hidden
     
     #line 100 "..\..\..\Views\FilePickerDialog.xaml"
     this.PackageFileChooser.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler<object>(this.PkgFileChooser_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 115 "..\..\..\Views\FilePickerDialog.xaml"
     this.SelectButton.Click += new System.Windows.RoutedEventHandler(this.SelectClick);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Ejemplo n.º 3
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FilePickerTopLevel = ((TraceLab.UI.WPF.Views.FilePickerDialog)(target));

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

            #line default
            #line hidden
                return;

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

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

            #line default
            #line hidden

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

            #line default
            #line hidden
                return;

            case 3:

            #line 90 "..\..\..\Views\FilePickerDialog.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 93 "..\..\..\Views\FilePickerDialog.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 98 "..\..\..\Views\FilePickerDialog.xaml"
                this.PackageExpander.Expanded += new System.Windows.RoutedEventHandler(this.PackageExpander_Expanded);

            #line default
            #line hidden

            #line 98 "..\..\..\Views\FilePickerDialog.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 99 "..\..\..\Views\FilePickerDialog.xaml"
                this.PackageFileChooser.IsVisibleChanged += new System.Windows.DependencyPropertyChangedEventHandler(this.TreeView_IsVisibleChanged);

            #line default
            #line hidden

            #line 100 "..\..\..\Views\FilePickerDialog.xaml"
                this.PackageFileChooser.SelectedItemChanged += new System.Windows.RoutedPropertyChangedEventHandler <object>(this.PkgFileChooser_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 115 "..\..\..\Views\FilePickerDialog.xaml"
                this.SelectButton.Click += new System.Windows.RoutedEventHandler(this.SelectClick);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }