상속: System.Windows.Window
예제 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Dwindle = ((ImageCompressor.MainWindow)(target));
                return;

            case 2:

            #line 10 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.CompressImage_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.ListImages = ((System.Windows.Controls.ListView)(target));
                return;

            case 4:
                this.Btn_UnselectAll = ((System.Windows.Controls.Button)(target));

            #line 29 "..\..\MainWindow.xaml"
                this.Btn_UnselectAll.Click += new System.Windows.RoutedEventHandler(this.Btn_UnselectAll_Click);

            #line default
            #line hidden
                return;

            case 5:
                this.Btn_SelectAll = ((System.Windows.Controls.Button)(target));

            #line 30 "..\..\MainWindow.xaml"
                this.Btn_SelectAll.Click += new System.Windows.RoutedEventHandler(this.Btn_SelectAll_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.btn_GoToPictures = ((System.Windows.Controls.Button)(target));

            #line 31 "..\..\MainWindow.xaml"
                this.btn_GoToPictures.Click += new System.Windows.RoutedEventHandler(this.Btn_GoToPictures_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
예제 #2
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.Main = ((ImageCompressor.MainWindow)(target));
                return;

            case 2:
                this.btnClose = ((System.Windows.Controls.Button)(target));

            #line 15 "..\..\MainWindow.xaml"
                this.btnClose.Click += new System.Windows.RoutedEventHandler(this.btnClose_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.txtFolder = ((System.Windows.Controls.TextBox)(target));
                return;

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

            case 5:
                this.dgAll = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 6:
                this.dgCompressable = ((System.Windows.Controls.DataGrid)(target));
                return;

            case 7:
                this.btnSelect = ((System.Windows.Controls.Button)(target));

            #line 38 "..\..\MainWindow.xaml"
                this.btnSelect.Click += new System.Windows.RoutedEventHandler(this.btnSelect_Click);

            #line default
            #line hidden
                return;

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

            #line 39 "..\..\MainWindow.xaml"
                this.btnCompress.Click += new System.Windows.RoutedEventHandler(this.btnCompress_Click);

            #line default
            #line hidden
                return;

            case 9:
                this.btnFilter = ((System.Windows.Controls.Button)(target));

            #line 40 "..\..\MainWindow.xaml"
                this.btnFilter.Click += new System.Windows.RoutedEventHandler(this.btnFilter_Click);

            #line default
            #line hidden
                return;

            case 10:
                this.lblImagesCount = ((System.Windows.Controls.Label)(target));
                return;

            case 11:
                this.lblMessage = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 48 "..\..\MainWindow.xaml"
                this.btnShowCompressed.Click += new System.Windows.RoutedEventHandler(this.btnShowCompressed_Click);

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