コード例 #1
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.videoViewer = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 2:

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

            #line default
            #line hidden
                return;

            case 3:

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 32 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 4:

            #line 33 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 33 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 5:

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 34 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 6:

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 36 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 7:

            #line 37 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 37 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 8:

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 39 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 9:

            #line 40 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 40 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 10:

            #line 41 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 41 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 11:

            #line 46 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 46 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 12:

            #line 47 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.MouseDownMove);

            #line default
            #line hidden

            #line 47 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.Button)(target)).PreviewMouseLeftButtonUp += new System.Windows.Input.MouseButtonEventHandler(this.MouseUpMove);

            #line default
            #line hidden
                return;

            case 13:

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

            #line default
            #line hidden
                return;

            case 14:
                this.comboBox_Devices = ((System.Windows.Controls.ComboBox)(target));

            #line 59 "..\..\MainWindow.xaml"
                this.comboBox_Devices.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.comboBox_Devices_SelectedIndexChanged);

            #line default
            #line hidden
                return;

            case 15:
                this.textBox_Host = ((System.Windows.Controls.TextBox)(target));
                return;

            case 16:
                this.textBox_Port = ((System.Windows.Controls.TextBox)(target));
                return;

            case 17:
                this.TrackBarBrightness = ((System.Windows.Controls.Slider)(target));

            #line 76 "..\..\MainWindow.xaml"
                this.TrackBarBrightness.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TrackBarBrightness_Scroll);

            #line default
            #line hidden
                return;

            case 18:
                this.TrackBarContrast = ((System.Windows.Controls.Slider)(target));

            #line 77 "..\..\MainWindow.xaml"
                this.TrackBarContrast.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TrackBarContrast_Scroll);

            #line default
            #line hidden
                return;

            case 19:
                this.TrackBarSaturation = ((System.Windows.Controls.Slider)(target));

            #line 78 "..\..\MainWindow.xaml"
                this.TrackBarSaturation.PreviewMouseUp += new System.Windows.Input.MouseButtonEventHandler(this.TrackBarSaturation_Scroll);

            #line default
            #line hidden
                return;

            case 20:
                this.BrightnessLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 21:
                this.ContrastLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 22:
                this.SaturationLabel = ((System.Windows.Controls.Label)(target));
                return;

            case 23:
                this.txtIp = ((System.Windows.Controls.TextBox)(target));
                return;

            case 24:
                this.txtUser = ((System.Windows.Controls.TextBox)(target));
                return;

            case 25:
                this.txtPass = ((System.Windows.Controls.TextBox)(target));
                return;

            case 26:

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

            #line default
            #line hidden
                return;

            case 27:

            #line 92 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_1);

            #line default
            #line hidden
                return;

            case 28:

            #line 93 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click);

            #line default
            #line hidden
                return;

            case 29:

            #line 94 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_2);

            #line default
            #line hidden
                return;

            case 30:

            #line 95 "..\..\MainWindow.xaml"
                ((System.Windows.Controls.MenuItem)(target)).Click += new System.Windows.RoutedEventHandler(this.MenuItem_Click_3);

            #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.gridView = ((System.Windows.Controls.Grid)(target));
                return;

            case 2:
                this.viewVid1 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 3:
                this.viewVid2 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 4:
                this.viewVid3 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 5:
                this.viewVid4 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

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

            #line 42 "..\..\CameraViewer.xaml"
                this.FilePath1.Click += new System.Windows.RoutedEventHandler(this.FilePath1_Click);

            #line default
            #line hidden
                return;

            case 7:
                this.gridView_Copy = ((System.Windows.Controls.Grid)(target));
                return;

            case 8:
                this.viewVid5 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 9:
                this.viewVid6 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 10:
                this.viewVid7 = ((Ozeki.Media.VideoViewerWPF)(target));
                return;

            case 11:
                this.txtPath1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 12:
                this.txtPath2 = ((System.Windows.Controls.TextBox)(target));
                return;

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

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

            case 15:
                this.Stop1 = ((System.Windows.Controls.Button)(target));

            #line 73 "..\..\CameraViewer.xaml"
                this.Stop1.Click += new System.Windows.RoutedEventHandler(this.Stop1_Click);

            #line default
            #line hidden
                return;

            case 16:
                this.FilePath2 = ((System.Windows.Controls.Button)(target));

            #line 74 "..\..\CameraViewer.xaml"
                this.FilePath2.Click += new System.Windows.RoutedEventHandler(this.FilePath2_Click);

            #line default
            #line hidden
                return;

            case 17:
                this.FilePath4 = ((System.Windows.Controls.Button)(target));

            #line 75 "..\..\CameraViewer.xaml"
                this.FilePath4.Click += new System.Windows.RoutedEventHandler(this.FilePath4_Click);

            #line default
            #line hidden
                return;

            case 18:
                this.FilePath3 = ((System.Windows.Controls.Button)(target));

            #line 76 "..\..\CameraViewer.xaml"
                this.FilePath3.Click += new System.Windows.RoutedEventHandler(this.FilePath3_Click);

            #line default
            #line hidden
                return;

            case 19:
                this.Record1 = ((System.Windows.Controls.Button)(target));

            #line 77 "..\..\CameraViewer.xaml"
                this.Record1.Click += new System.Windows.RoutedEventHandler(this.Record1_Click);

            #line default
            #line hidden
                return;

            case 20:
                this.Record2 = ((System.Windows.Controls.Button)(target));

            #line 78 "..\..\CameraViewer.xaml"
                this.Record2.Click += new System.Windows.RoutedEventHandler(this.Record2_Click);

            #line default
            #line hidden
                return;

            case 21:
                this.Stop2 = ((System.Windows.Controls.Button)(target));

            #line 79 "..\..\CameraViewer.xaml"
                this.Stop2.Click += new System.Windows.RoutedEventHandler(this.Stop2_Click);

            #line default
            #line hidden
                return;

            case 22:
                this.Record3 = ((System.Windows.Controls.Button)(target));

            #line 80 "..\..\CameraViewer.xaml"
                this.Record3.Click += new System.Windows.RoutedEventHandler(this.Record3_Click);

            #line default
            #line hidden
                return;

            case 23:
                this.Stop3 = ((System.Windows.Controls.Button)(target));

            #line 81 "..\..\CameraViewer.xaml"
                this.Stop3.Click += new System.Windows.RoutedEventHandler(this.Stop3_Click);

            #line default
            #line hidden
                return;

            case 24:
                this.Record4 = ((System.Windows.Controls.Button)(target));

            #line 82 "..\..\CameraViewer.xaml"
                this.Record4.Click += new System.Windows.RoutedEventHandler(this.Record4_Click);

            #line default
            #line hidden
                return;

            case 25:
                this.Stop4 = ((System.Windows.Controls.Button)(target));

            #line 83 "..\..\CameraViewer.xaml"
                this.Stop4.Click += new System.Windows.RoutedEventHandler(this.Stop4_Click);

            #line default
            #line hidden
                return;

            case 26:
                this.IpCam1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 27:
                this.UseCam1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 28:
                this.PassCam1 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 29:
                this.ConnectCam1 = ((System.Windows.Controls.Button)(target));

            #line 91 "..\..\CameraViewer.xaml"
                this.ConnectCam1.Click += new System.Windows.RoutedEventHandler(this.ConnectCam1_Click);

            #line default
            #line hidden
                return;

            case 30:
                this.IpCam2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 31:
                this.UseCam2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 32:
                this.PassCam2 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 33:
                this.ConnectCam2 = ((System.Windows.Controls.Button)(target));

            #line 98 "..\..\CameraViewer.xaml"
                this.ConnectCam2.Click += new System.Windows.RoutedEventHandler(this.ConnectCam2_Click);

            #line default
            #line hidden
                return;

            case 34:
                this.IpCam3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 35:
                this.UseCam3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 36:
                this.PassCam3 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.ConnectCam3 = ((System.Windows.Controls.Button)(target));

            #line 105 "..\..\CameraViewer.xaml"
                this.ConnectCam3.Click += new System.Windows.RoutedEventHandler(this.ConnectCam3_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.IpCam4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 39:
                this.UseCam4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 40:
                this.PassCam4 = ((System.Windows.Controls.TextBox)(target));
                return;

            case 41:
                this.ConnectCam4 = ((System.Windows.Controls.Button)(target));

            #line 112 "..\..\CameraViewer.xaml"
                this.ConnectCam4.Click += new System.Windows.RoutedEventHandler(this.ConnectCam4_Click);

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