public CaptureForm() { InitializeComponent(); Application.ApplicationExit += new EventHandler(Application_ApplicationExit); dataGridView.ForeColor = Color.FromArgb(235, 235, 235); deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); Opacity = 0; System.Windows.Forms.Timer timer = new System.Windows.Forms.Timer(); timer.Tick += new EventHandler((sender, e) => { if ((Opacity += 0.1d) == 1) { timer.Stop(); } }); timer.Interval = 1; timer.Start(); SetDoubleBuffered(this, true); dataGridView.DefaultCellStyle.Font = new Font("Roboto", 8.8f, FontStyle.Regular); menuStrip1.Renderer = new MyRenderer(); }
private void selectDevToolStripMenuItem_Click(object sender, EventArgs e) { Shutdown(); if (deviceListForm != null) { deviceListForm.Close(); } deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); deviceListForm.Show(); }
private void startToolStripMenuItem_Click(object sender, EventArgs e) { if (device == null) { deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); deviceListForm.Show(); } else { Shutdown(); } }
private void CaptureForm_Load(object sender, EventArgs e) { deviceListForm = new DeviceListForm(); deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected); }