예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
 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();
     }
 }
예제 #4
0
 private void CaptureForm_Load(object sender, EventArgs e)
 {
     deviceListForm = new DeviceListForm();
     deviceListForm.OnItemSelected += new DeviceListForm.OnItemSelectedDelegate(deviceListForm_OnItemSelected);
 }