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.
Cigarette/WindowsFormsApp2/FullScreen.cs

58 lines
1.3 KiB
C#

2 years ago
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();
}
2 years ago
public void bindCam(int d)
{
singleCam1.setCamId(d);
FormClosed += FullScreen_FormClosed;
2 years ago
camid = d;
}
private void FullScreen_FormClosed(object sender, FormClosedEventArgs e)
{
OnFullScreenClose(camid);
}
2 years ago
private void rotate_Click(object sender, EventArgs e)
{
UserControl1.SendMsg(Convert.ToString(camid));
}
public Action<int> OnFullScreenClose;
2 years ago
}
}