Exemple #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.FoldersCompareWindow = ((WpfTotalnik.FoldersCompare)(target));

            #line 8 "..\..\FoldersCompareWindow.xaml"
                this.FoldersCompareWindow.Loaded += new System.Windows.RoutedEventHandler(this.FoldersCompareWindow_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.CopyMenuBtn = ((System.Windows.Controls.MenuItem)(target));

            #line 13 "..\..\FoldersCompareWindow.xaml"
                this.CopyMenuBtn.Click += new System.Windows.RoutedEventHandler(this.CopyMenuBtn_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.CompareMenuBtn = ((System.Windows.Controls.MenuItem)(target));

            #line 14 "..\..\FoldersCompareWindow.xaml"
                this.CompareMenuBtn.Click += new System.Windows.RoutedEventHandler(this.CompareMenuBtn_Click);

            #line default
            #line hidden
                return;

            case 4:

            #line 16 "..\..\FoldersCompareWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.CloseFoldersComparing);

            #line default
            #line hidden
                return;

            case 5:
                this.leftDrives = ((System.Windows.Controls.Primitives.ToolBarPanel)(target));
                return;

            case 6:

            #line 21 "..\..\FoldersCompareWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.filterExtension = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 8:
                this.cmpContent = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 9:
                this.withSubDir = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 10:
                this.byDate = ((System.Windows.Controls.CheckBox)(target));
                return;

            case 11:
                this.SyncBtn = ((System.Windows.Controls.Button)(target));

            #line 26 "..\..\FoldersCompareWindow.xaml"
                this.SyncBtn.Click += new System.Windows.RoutedEventHandler(this.SyncBtn_Click);

            #line default
            #line hidden
                return;

            case 12:
                this.CopyBtn = ((System.Windows.Controls.Button)(target));

            #line 27 "..\..\FoldersCompareWindow.xaml"
                this.CopyBtn.Click += new System.Windows.RoutedEventHandler(this.CopyBtn_Click);

            #line default
            #line hidden
                return;

            case 13:
                this.folderPathLeft = ((System.Windows.Controls.TextBox)(target));
                return;

            case 14:
                this.folderPathRight = ((System.Windows.Controls.TextBox)(target));
                return;

            case 15:
                this.foldersCmpList = ((System.Windows.Controls.ListView)(target));

            #line 31 "..\..\FoldersCompareWindow.xaml"
                this.foldersCmpList.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.foldersCmpList_MouseDoubleClick);

            #line default
            #line hidden

            #line 31 "..\..\FoldersCompareWindow.xaml"
                this.foldersCmpList.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.foldersCmpList_SelectionChanged);

            #line default
            #line hidden
                return;

            case 16:
                this.GVColumnFirstName = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 17:
                this.GVColumnFirstSize = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 18:
                this.GVColumnFirstDate = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 19:
                this.GVColumnImage = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 20:
                this.GVColumnSecondDate = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 21:
                this.GVColumnSecondSize = ((System.Windows.Controls.GridViewColumn)(target));
                return;

            case 22:
                this.GVColumnSecondName = ((System.Windows.Controls.GridViewColumn)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private void CompareFolders(object sender, RoutedEventArgs e)
        {
            FoldersCompare folderCompare = new FoldersCompare(leftPath, rightPath);

            folderCompare.ShowDialog();
        }