示例#1
0
        public void AddCamerItem(int index, int columns)
        {
            string sqlExists = string.Format("  SELECT * FROM camerDevice WHERE deviceID='{0}'",
                                             videoDevices[index].MonikerString);
            DataTable ds = SQLiteHelper.ExecuteQuery(sqlExists).Tables[0];
            int       videwplayerWidth = 320;
            int       controlWidth     = this.Width;
            // VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[index].MonikerString);
            VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[index > 1 ? 0 : index].MonikerString);

            //videoSource.DesiredFrameSize = new System.Drawing.Size(320, 240);
            // videoSource.DesiredFrameRate = 1;

            videoSource.VideoResolution = videoSource.VideoCapabilities[Convert.ToInt32(ds.Rows[0]["frameSizeIndex"])];
            VideoCapabilities d = videoSource.VideoCapabilities[0];// = new System.Drawing.Size(640, 480);

            AForge.Controls.VideoSourcePlayer videoplayer = new AForge.Controls.VideoSourcePlayer();
            videoplayer.Top       = 100;
            videoplayer.Left      = 320 * (index) + 1;
            videoplayer.Height    = 240;
            videoplayer.Name      = "videoplayer" + index;
            videoplayer.Tag       = ds.Rows[0]["name"];
            videoplayer.Width     = videwplayerWidth;
            videoplayer.NewFrame += new AForge.Controls.VideoSourcePlayer.NewFrameHandler(this.videoPlayer_NewFrame);
            videoPlayerlist.Add(videoplayer);
            int columnsIndex = index % columns == 0 ? index / columns : index % columns;
            int rowIndex     = index % columns == 0 ? (index - columns + 1) / columns : index / columns;

            tablepanel.Controls.Add(videoplayer, columnsIndex, rowIndex);

            videoplayer.VideoSource = videoSource;
            videoplayer.Start();
            //videoSourcePlayer.VideoSource = videoSource;
            //videoSourcePlayer.Start();
        }
 public ChangeVideoFormatCommand(VideoSourcePlayer videoPlayer, ComboBox videoSourceCombo, ComboBox videoFormatCombo, MainForm mainForm)
 {
     this.videoPlayer = videoPlayer;
     this.videoFormatCombo = videoFormatCombo;
     this.videoSourceCombo = videoSourceCombo;
     this.mainForm = mainForm;
 }
示例#3
0
        private void button1_Click(object sender, EventArgs e)
        {
            vkl             = true;
            button5.Enabled = false;
            button4.Enabled = true;
            var videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice);

            height        = Settings.height;
            width         = Settings.width;
            player        = new VideoSourcePlayer();
            player.Top    = 30;
            player.Left   = 30;
            player.Width  = width;
            player.Height = height;
            player.Show();
            Controls.Add(player);
            button1.Top  = height + 30;
            button1.Left = width + 50;
            button2.Top  = height + 60;
            button2.Left = width + 50;
            button3.Top  = height + 90;
            button3.Left = width + 50;
            button4.Top  = height + 120;
            button4.Left = width + 50;
            button5.Top  = height + 160;
            button5.Left = width + 50;
            cam          = new AForge.Video.DirectShow.VideoCaptureDevice(videoDevices[0].MonikerString);
            cam.Start();
            player.VideoSource = cam;
            player.Start();
        }
示例#4
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 11 "..\..\MainWindow.xaml"
                ((RatCam.MainWindow)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

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

            #line 47 "..\..\MainWindow.xaml"
                this.StartButton.Click += new System.Windows.RoutedEventHandler(this.StartButton_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.CameraVideoSourcePlayer = ((AForge.Controls.VideoSourcePlayer)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#5
0
 private void ProcessCamera(Socket client)
 {
     _CameraClient = client;
     AForge.Controls.VideoSourcePlayer videPlayer = Program._mainForm.getVideoView();
     if (!videPlayer.IsRunning)
     {
         Program._mainForm.SafeCameraConn(null);
     }
     videPlayer.NewFrame += new VideoSourcePlayer.NewFrameHandler(onFrame);
 }
示例#6
0
        public snapShotSender(VideoCaptureDevice VCD)
        {
            videoDevice = VCD;
            VSP = new VideoSourcePlayer();
            videoCapabilities = videoDevice.VideoCapabilities;
            snapshotCapabilitites = videoDevice.SnapshotCapabilities;

            videoDevice.VideoResolution = videoCapabilities[0];
            videoDevice.ProvideSnapshots = true;
            videoDevice.SnapshotResolution = snapshotCapabilitites[_quality];
            videoDevice.SnapshotFrame += videoDevice_SnapshotFrame;
            VSP.VideoSource = videoDevice; //Idk why this has to happen to get snapshots, but it does...
            videoDevice.Start();
        }
示例#7
0
        public snapShotSender(VideoCaptureDevice VCD)
        {
            videoDevice = VCD;
            VSP = new VideoSourcePlayer();
            videoCapabilities = videoDevice.VideoCapabilities;
            snapshotCapabilitites = videoDevice.SnapshotCapabilities;

            _quality = 5;  //TODO: This sets it to lowest quality, i doubt we want that every time... to the right is code for the second highest, but it crashes on bad cameras with few snapshot choices... can be fixed easily... But it usually gets rid of the blob       videoCapabilities.Length - 2;

            videoDevice.VideoResolution = videoCapabilities[0];
            videoDevice.ProvideSnapshots = true;
            videoDevice.SnapshotResolution = snapshotCapabilitites[_quality]; //
            videoDevice.SnapshotFrame += videoDevice_SnapshotFrame;
            VSP.VideoSource = videoDevice; //Idk why this has to happen to get snapshots, but it does...
            fullfilTransmitTimer = new Timer(timerCallback, null, Timeout.Infinite, Timeout.Infinite);
        }
示例#8
0
        /*
         * Default constructor
         */
        public VideoStream(String url)
        {
            InitializeComponent();

            // instantiate picture box for video showing
            _videoPlayer = new VideoSourcePlayer
            {
                Name = "_videoPlayer",
                Size = new Size(640, 480),
                Location = new Point(0, 0),
                Visible = true
            };

            // add the video player to the form
            this.Controls.Add(this._videoPlayer);

            StartVideo(url);
        }
示例#9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.tb_photo = ((System.Windows.Controls.Image)(target));
                return;

            case 2:

            #line 32 "..\..\FaceVerification.xaml"
                ((System.Windows.Forms.Integration.WindowsFormsHost)(target)).ChildChanged += new System.EventHandler <System.Windows.Forms.Integration.ChildChangedEventArgs>(this.WindowsFormsHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 3:
                this.player = ((AForge.Controls.VideoSourcePlayer)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#10
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        /// 
        public RecorderViewModel(MainViewModel main, VideoSourcePlayer player)
        {
            if (main == null)
                throw new ArgumentNullException("main");

            if (player == null)
                throw new ArgumentNullException("player");

            this.main = main;
            this.videoPlayer = player;
            this.videoPlayer.NewFrame += Player_NewFrame;

            this.CaptureMode = CaptureRegionOption.Primary;
            this.CaptureRegion = new Rectangle(0, 0, 640, 480);

            this.clickCapture = new CaptureClick();
            this.cursorCapture = new CaptureCursor();
            this.keyCapture = new CaptureKeyboard();

            if (Settings.Default.CaptureAudio)
                this.CaptureAudioDevice = new AudioDeviceCollection(AudioDeviceCategory.Capture).Default;
        }
示例#11
0
文件: Mix.g.i.cs 项目: GitSarp/NoOcx
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\Mix.xaml"
                ((NOocx.Mix)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded);

            #line default
            #line hidden
                return;

            case 2:
                this.menubar = ((System.Windows.Controls.DockPanel)(target));
                return;

            case 3:
                this.videoMenu = ((System.Windows.Controls.ComboBox)(target));

            #line 24 "..\..\Mix.xaml"
                this.videoMenu.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.videoMenu_SelectionChanged);

            #line default
            #line hidden
                return;

            case 4:
                this.mediaType = ((System.Windows.Controls.ComboBox)(target));

            #line 26 "..\..\Mix.xaml"
                this.mediaType.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.mediaType_SelectionChanged);

            #line default
            #line hidden
                return;

            case 5:
                this.currfileName = ((System.Windows.Controls.Label)(target));
                return;

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

            #line 28 "..\..\Mix.xaml"
                this.zoomasc.Click += new System.Windows.RoutedEventHandler(this.zoomasc_Click);

            #line default
            #line hidden
                return;

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

            #line 29 "..\..\Mix.xaml"
                this.zoomdesc.Click += new System.Windows.RoutedEventHandler(this.zoomdesc_Click);

            #line default
            #line hidden
                return;

            case 8:
                this.wfhost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 9:
                this.videoPlayer = ((AForge.Controls.VideoSourcePlayer)(target));
                return;

            case 10:
                this.canvashost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 11:
                this.canvas = ((AForge.Controls.PictureBox)(target));
                return;

            case 12:

            #line 46 "..\..\Mix.xaml"
                ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Capture_Click);

            #line default
            #line hidden
                return;

            case 13:

            #line 53 "..\..\Mix.xaml"
                ((System.Windows.Controls.ScrollViewer)(target)).ScrollChanged += new System.Windows.Controls.ScrollChangedEventHandler(this.ScrollViewer_ScrollChanged);

            #line default
            #line hidden
                return;

            case 14:
                this.bottom_image = ((System.Windows.Controls.StackPanel)(target));
                return;
            }
            this._contentLoaded = true;
        }
示例#12
0
        public string startWeb(string type,int num)
        {
            DirectoryInfo dirTemp = new DirectoryInfo(Path.Combine(Application.StartupPath, @"temp"));
            File.Delete("t.jpg");
            webfile = "";

            try { videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); }
            catch (ApplicationException) {   MessageBox.Show("Нет веб камеры"); }

            videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString);

            foreach (VideoCapabilities a in videoSource.VideoCapabilities)
            {
             //   if (a.FrameSize.Height == 2048)
                if (a.FrameSize.Height == resolutuin)
                    videoSource.DesiredFrameSize = a.FrameSize;
            }

            videoSource.Start();

            VideoSourcePlayer aa = new VideoSourcePlayer();

            videoSource.NewFrame += new NewFrameEventHandler(v1ideo_NewFrame);

            int timer = 3000;
            while (timer > 0)
            {
                if(webfile != "")
                {
                    string filename = webfile;
                    foreach (data d in dataVer)
                    {
                        if (d.id == type)
                        {
                            string filetemp = dirTemp + @"/" + d.title.Replace(' ','_') + "_" + num + ".jpg";
                               Image image = Image.FromFile(filename);
                                File.Delete(filetemp);
                                image.Save(filetemp);
                                image.Dispose();

                            if (d.x == "" || d.y == "" || d.w == "" || d.h == "")
                            {
                                return filetemp;
                            }

                            /////////////////////////////////////////////////////////////////
                            Bitmap absentRectangleImage = (Bitmap)Bitmap.FromFile(filetemp);
                            int x = Convert.ToInt32(d.x);
                            int y = Convert.ToInt32(d.y);
                            int w = Convert.ToInt32(absentRectangleImage.Width - Convert.ToInt32(d.w) - x);
                            int h = Convert.ToInt32(absentRectangleImage.Height - Convert.ToInt32(d.h) - y);

                            Bitmap currentTile;

                            try {
                                currentTile = new Bitmap((int)(w), (int)(h));
                            }   catch (Exception)  { MessageBox.Show("Невозможно обрезать изображение. Неверные параметры обрезки!");  return ""; }

                            currentTile.SetResolution(absentRectangleImage.HorizontalResolution, absentRectangleImage.VerticalResolution);

                            using (var currentTileGraphics = Graphics.FromImage(currentTile))
                            {
                                currentTileGraphics.Clear(Color.Black);
                                var absentRectangleArea = new Rectangle(x, y, (int)(w), (int)(h));
                                currentTileGraphics.DrawImage(absentRectangleImage, 0, 0, absentRectangleArea, GraphicsUnit.Pixel);
                            }

                            absentRectangleImage.Dispose();
                            currentTile.Save(filetemp);
                            return filetemp;
                        }
                    }
                }
                // repeat
                Thread.Sleep(200);
                timer -= 200;
            }
            return "";
        }
示例#13
0
 public void SetSources(IVideoSource videoSource, VideoSourcePlayer.NewFrameHandler NFH, FormClosedEventHandler FCEH)
 {
     this.videoSourcePlayer.VideoSource = videoSource;
     this.videoSourcePlayer.NewFrame += NFH;
     this.FormClosed += FCEH;
 }
示例#14
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 9 "..\..\InStore.xaml"
                ((ScanningAfter.InStore)(target)).Closed += new System.EventHandler(this.Window_Closed);

            #line default
            #line hidden
                return;

            case 2:
                this.WfiWfh = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 3:
                this.sourcePlayer = ((AForge.Controls.VideoSourcePlayer)(target));
                return;

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

            case 5:
                this.pinming = ((System.Windows.Controls.TextBox)(target));
                return;

            case 6:
                this.xinghao = ((System.Windows.Controls.TextBox)(target));
                return;

            case 7:
                this.shoujia = ((System.Windows.Controls.TextBox)(target));

            #line 21 "..\..\InStore.xaml"
                this.shoujia.KeyDown += new System.Windows.Input.KeyEventHandler(this.zongliang_KeyDown);

            #line default
            #line hidden

            #line 21 "..\..\InStore.xaml"
                this.shoujia.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.zongliang_TextChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.chengben = ((System.Windows.Controls.TextBox)(target));

            #line 23 "..\..\InStore.xaml"
                this.chengben.KeyDown += new System.Windows.Input.KeyEventHandler(this.zongliang_KeyDown);

            #line default
            #line hidden

            #line 23 "..\..\InStore.xaml"
                this.chengben.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.zongliang_TextChanged);

            #line default
            #line hidden
                return;

            case 9:
                this.tiaoma = ((System.Windows.Controls.TextBox)(target));
                return;

            case 10:
                this.zongliang = ((System.Windows.Controls.TextBox)(target));

            #line 27 "..\..\InStore.xaml"
                this.zongliang.KeyDown += new System.Windows.Input.KeyEventHandler(this.zongliang_KeyDown);

            #line default
            #line hidden

            #line 27 "..\..\InStore.xaml"
                this.zongliang.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.zongliang_TextChanged);

            #line default
            #line hidden
                return;

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

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

            case 13:
                this.myImage = ((System.Windows.Controls.Image)(target));
                return;

            case 14:
                this.shex = ((System.Windows.Controls.Button)(target));

            #line 33 "..\..\InStore.xaml"
                this.shex.Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);

            #line default
            #line hidden
                return;

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

            #line 34 "..\..\InStore.xaml"
                this.cut.Click += new System.Windows.RoutedEventHandler(this.cut_Click);

            #line default
            #line hidden
                return;

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

            #line 35 "..\..\InStore.xaml"
                this.canfirm.Click += new System.Windows.RoutedEventHandler(this.canfirm_Click);

            #line default
            #line hidden
                return;
            }
            this._contentLoaded = true;
        }
示例#15
0
        /// <summary>
        ///   Initializes a new instance of the <see cref="MainViewModel"/> class.
        /// </summary>
        /// 
        public MainViewModel(VideoSourcePlayer player)
        {
            if (player == null) throw new ArgumentNullException("player");

            Recorder = new RecorderViewModel(this, player);
            Notifier = new NotifyViewModel(Recorder);
            Converter = new ConvertViewModel(this);

            IsPreviewVisible = true;
            CurrentDirectory = Settings.Default.DefaultFolder;
            StatusText = Resources.Status_Ready;



            PropertyChanged += MainViewModel_PropertyChanged;
            Recorder.PropertyChanged += recorder_PropertyChanged;
            Converter.PropertyChanged += Convert_PropertyChanged;
        }
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     
     #line 12 "..\..\MainWindow.xaml"
     ((APOD_Controller.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.MetroWindow_Closing);
     
     #line default
     #line hidden
     return;
     case 2:
     this.menuLive = ((System.Windows.Controls.MenuItem)(target));
     
     #line 18 "..\..\MainWindow.xaml"
     this.menuLive.Click += new System.Windows.RoutedEventHandler(this.menuLive_Click);
     
     #line default
     #line hidden
     return;
     case 3:
     this.menuPlayer = ((System.Windows.Controls.MenuItem)(target));
     
     #line 19 "..\..\MainWindow.xaml"
     this.menuPlayer.Click += new System.Windows.RoutedEventHandler(this.menuPlayer_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.menuConfig = ((System.Windows.Controls.MenuItem)(target));
     
     #line 20 "..\..\MainWindow.xaml"
     this.menuConfig.Click += new System.Windows.RoutedEventHandler(this.menuConfig_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.tabControl = ((System.Windows.Controls.TabControl)(target));
     return;
     case 6:
     this.tabLiveControl = ((System.Windows.Controls.TabItem)(target));
     return;
     case 7:
     this.gridLive = ((System.Windows.Controls.Grid)(target));
     return;
     case 8:
     this.pnlNavigation = ((System.Windows.Controls.Border)(target));
     return;
     case 9:
     this.navLeft = ((APOD_Keypad.Key)(target));
     return;
     case 10:
     this.navRight = ((APOD_Keypad.Key)(target));
     return;
     case 11:
     this.navUp = ((APOD_Keypad.Key)(target));
     return;
     case 12:
     this.navDown = ((APOD_Keypad.Key)(target));
     return;
     case 13:
     this.pnlAction = ((System.Windows.Controls.Border)(target));
     return;
     case 14:
     this.actSquare = ((APOD_Keypad.Key)(target));
     return;
     case 15:
     this.actCircle = ((APOD_Keypad.Key)(target));
     return;
     case 16:
     this.actTriangle = ((APOD_Keypad.Key)(target));
     return;
     case 17:
     this.actCross = ((APOD_Keypad.Key)(target));
     return;
     case 18:
     this.pnlTriggers = ((System.Windows.Controls.Border)(target));
     return;
     case 19:
     this.actL1 = ((APOD_Keypad.Key)(target));
     return;
     case 20:
     this.actL2 = ((APOD_Keypad.Key)(target));
     return;
     case 21:
     this.actR1 = ((APOD_Keypad.Key)(target));
     return;
     case 22:
     this.actR2 = ((APOD_Keypad.Key)(target));
     return;
     case 23:
     this.pnlFunction = ((System.Windows.Controls.Border)(target));
     return;
     case 24:
     this.actStart = ((APOD_Keypad.Key)(target));
     return;
     case 25:
     this.actSelect = ((APOD_Keypad.Key)(target));
     return;
     case 26:
     
     #line 138 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_1);
     
     #line default
     #line hidden
     return;
     case 27:
     
     #line 139 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.Button_Click_2);
     
     #line default
     #line hidden
     return;
     case 28:
     this.imgSplash = ((System.Windows.Controls.Image)(target));
     return;
     case 29:
     this.hostCam = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
     return;
     case 30:
     this.viewCam = ((AForge.Controls.VideoSourcePlayer)(target));
     return;
     case 31:
     this.rdModeNormal = ((System.Windows.Controls.RadioButton)(target));
     
     #line 155 "..\..\MainWindow.xaml"
     this.rdModeNormal.Checked += new System.Windows.RoutedEventHandler(this.rdModeNormal_Checked);
     
     #line default
     #line hidden
     
     #line 155 "..\..\MainWindow.xaml"
     this.rdModeNormal.Unchecked += new System.Windows.RoutedEventHandler(this.rdModeNormal_Unchecked);
     
     #line default
     #line hidden
     return;
     case 32:
     this.rdModeKeypad = ((System.Windows.Controls.RadioButton)(target));
     
     #line 158 "..\..\MainWindow.xaml"
     this.rdModeKeypad.Checked += new System.Windows.RoutedEventHandler(this.rdModeKeypad_Checked);
     
     #line default
     #line hidden
     
     #line 158 "..\..\MainWindow.xaml"
     this.rdModeKeypad.Unchecked += new System.Windows.RoutedEventHandler(this.rdModeKeypad_Unchecked);
     
     #line default
     #line hidden
     return;
     case 33:
     this.rdModeObjTracking = ((System.Windows.Controls.RadioButton)(target));
     
     #line 161 "..\..\MainWindow.xaml"
     this.rdModeObjTracking.Checked += new System.Windows.RoutedEventHandler(this.rdModeObjTracking_Checked);
     
     #line default
     #line hidden
     
     #line 161 "..\..\MainWindow.xaml"
     this.rdModeObjTracking.Unchecked += new System.Windows.RoutedEventHandler(this.rdModeObjTracking_Unchecked);
     
     #line default
     #line hidden
     return;
     case 34:
     this.btnStream = ((System.Windows.Controls.Button)(target));
     
     #line 162 "..\..\MainWindow.xaml"
     this.btnStream.Click += new System.Windows.RoutedEventHandler(this.Streaming_Trigger);
     
     #line default
     #line hidden
     return;
     case 35:
     this.pnlTrackingObject = ((System.Windows.Controls.Expander)(target));
     return;
     case 36:
     this.cbTrackingMethod = ((System.Windows.Controls.ComboBox)(target));
     
     #line 167 "..\..\MainWindow.xaml"
     this.cbTrackingMethod.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbTrackingMethod_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 37:
     this.imgTrackingColor = ((System.Windows.Controls.Image)(target));
     return;
     case 38:
     this.imgTrackingGlyph = ((System.Windows.Controls.Image)(target));
     return;
     case 39:
     this.btnTrackingChangeTarget = ((System.Windows.Controls.Button)(target));
     
     #line 173 "..\..\MainWindow.xaml"
     this.btnTrackingChangeTarget.Click += new System.Windows.RoutedEventHandler(this.btnTrackingChangeTarget_Click);
     
     #line default
     #line hidden
     return;
     case 40:
     this.btnTrackingLock = ((System.Windows.Controls.CheckBox)(target));
     
     #line 175 "..\..\MainWindow.xaml"
     this.btnTrackingLock.Checked += new System.Windows.RoutedEventHandler(this.btnTrackingLock_Checked);
     
     #line default
     #line hidden
     
     #line 175 "..\..\MainWindow.xaml"
     this.btnTrackingLock.Unchecked += new System.Windows.RoutedEventHandler(this.btnTrackingLock_Unchecked);
     
     #line default
     #line hidden
     return;
     case 41:
     this.tabPlayer = ((System.Windows.Controls.TabItem)(target));
     return;
     case 42:
     this.cbDirection = ((System.Windows.Controls.ComboBox)(target));
     
     #line 199 "..\..\MainWindow.xaml"
     this.cbDirection.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbDirection_SelectionChanged);
     
     #line default
     #line hidden
     return;
     case 43:
     this.txtInterval = ((System.Windows.Controls.TextBox)(target));
     
     #line 205 "..\..\MainWindow.xaml"
     this.txtInterval.PreviewTextInput += new System.Windows.Input.TextCompositionEventHandler(this.txtInterval_PreviewTextInput);
     
     #line default
     #line hidden
     return;
     case 44:
     this.btnSequenceAdd = ((System.Windows.Controls.Button)(target));
     
     #line 206 "..\..\MainWindow.xaml"
     this.btnSequenceAdd.Click += new System.Windows.RoutedEventHandler(this.btnSequenceAdd_Click);
     
     #line default
     #line hidden
     return;
     case 45:
     this.tblSequences = ((System.Windows.Controls.DataGrid)(target));
     return;
     case 47:
     
     #line 232 "..\..\MainWindow.xaml"
     ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.StateRemove_Click);
     
     #line default
     #line hidden
     return;
     case 48:
     this.btnImport = ((System.Windows.Controls.Button)(target));
     
     #line 237 "..\..\MainWindow.xaml"
     this.btnImport.Click += new System.Windows.RoutedEventHandler(this.btnImport_Click);
     
     #line default
     #line hidden
     return;
     case 49:
     this.btnExport = ((System.Windows.Controls.Button)(target));
     
     #line 238 "..\..\MainWindow.xaml"
     this.btnExport.Click += new System.Windows.RoutedEventHandler(this.btnExport_Click);
     
     #line default
     #line hidden
     return;
     case 50:
     this.btnPlay = ((System.Windows.Controls.Button)(target));
     
     #line 242 "..\..\MainWindow.xaml"
     this.btnPlay.Click += new System.Windows.RoutedEventHandler(this.btnPlay_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
示例#17
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:

            #line 10 "..\..\MainWindow.xaml"
                ((FaceSystem.MainWindow)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.Window_MouseLeftButtonDown);

            #line default
            #line hidden
                return;

            case 2:
                this.lal_AppName = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 3:
                this.btn_Vrs = ((System.Windows.Controls.Button)(target));

            #line 34 "..\..\MainWindow.xaml"
                this.btn_Vrs.Click += new System.Windows.RoutedEventHandler(this.btn_Vrs_Click);

            #line default
            #line hidden
                return;

            case 4:

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

            #line default
            #line hidden
                return;

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

            #line 53 "..\..\MainWindow.xaml"
                this.btn_Close.Click += new System.Windows.RoutedEventHandler(this.btn_Close_Click);

            #line default
            #line hidden
                return;

            case 6:
                this.grid_IndexWarp = ((System.Windows.Controls.Grid)(target));
                return;

            case 7:

            #line 91 "..\..\MainWindow.xaml"
                ((System.Windows.Forms.Integration.WindowsFormsHost)(target)).ChildChanged += new System.EventHandler <System.Windows.Forms.Integration.ChildChangedEventArgs>(this.WindowsFormsHost_ChildChanged);

            #line default
            #line hidden
                return;

            case 8:
                this.player = ((AForge.Controls.VideoSourcePlayer)(target));
                return;

            case 9:
                this.tb_photo = ((System.Windows.Controls.Image)(target));
                return;

            case 10:
                this.img_sfzView = ((System.Windows.Controls.Image)(target));
                return;

            case 11:
                this.tb_photo2 = ((System.Windows.Controls.Image)(target));
                return;

            case 12:
                this.tb_compareResult = ((System.Windows.Controls.Label)(target));
                return;

            case 13:
                this.grid_IDCard = ((System.Windows.Controls.Grid)(target));
                return;

            case 14:
                this.tb_name = ((System.Windows.Controls.Label)(target));
                return;

            case 15:
                this.tb_sex = ((System.Windows.Controls.Label)(target));
                return;

            case 16:
                this.tb_nation = ((System.Windows.Controls.Label)(target));
                return;

            case 17:
                this.tb_birth = ((System.Windows.Controls.Label)(target));
                return;

            case 18:
                this.tb_id = ((System.Windows.Controls.Label)(target));
                return;

            case 19:
                this.tb_sign = ((System.Windows.Controls.Label)(target));
                return;

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

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

            case 22:
                this.PageContext = ((System.Windows.Controls.Frame)(target));
                return;

            case 23:
                this.lal_UserName = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }