You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  |  | using System; | 
					
						
							|  |  |  |  | using System.Collections.Generic; | 
					
						
							|  |  |  |  | using System.ComponentModel; | 
					
						
							|  |  |  |  | using System.Data; | 
					
						
							|  |  |  |  | using System.Drawing; | 
					
						
							|  |  |  |  | using System.Linq; | 
					
						
							|  |  |  |  | using System.Text; | 
					
						
							|  |  |  |  | using System.Threading.Tasks; | 
					
						
							|  |  |  |  | using System.Windows.Forms; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | namespace WindowsFormsApp2 | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  |     public partial class FullScreen : Form | 
					
						
							|  |  |  |  |     { | 
					
						
							|  |  |  |  |         public int camid; | 
					
						
							|  |  |  |  |         public FullScreen() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             InitializeComponent(); | 
					
						
							|  |  |  |  |             WindowState = System.Windows.Forms.FormWindowState.Maximized; | 
					
						
							|  |  |  |  |             if(UserControl1.Debug) | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.rotate.Location = new Point(0, 0); | 
					
						
							|  |  |  |  |                 this.rotate.Visible = true;       | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |             else | 
					
						
							|  |  |  |  |             { | 
					
						
							|  |  |  |  |                 this.rotate.Visible = false; | 
					
						
							|  |  |  |  |             } | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public void ReleaseUdp() | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             this.singleCam1.closeSocket(); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public void bindCam(int d) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             singleCam1.setCamId(d); | 
					
						
							|  |  |  |  |             FormClosed += FullScreen_FormClosed; | 
					
						
							|  |  |  |  |             camid = d; | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         private void FullScreen_FormClosed(object sender, FormClosedEventArgs e)  | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             OnFullScreenClose(camid); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         private void rotate_Click(object sender, EventArgs e) | 
					
						
							|  |  |  |  |         { | 
					
						
							|  |  |  |  |             UserControl1.SendMsg(Convert.ToString(camid)); | 
					
						
							|  |  |  |  |         } | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |         public Action<int> OnFullScreenClose; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  |          | 
					
						
							|  |  |  |  |     } | 
					
						
							|  |  |  |  | } |