Ejemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     timer1.Interval = trackBar4.Value;
     poller.Poll(trackBar1.Value, trackBar2.Value, (uint)trackBar3.Value);
     toolStripStatusLabel1.Text = $"Monitor active : (dx={trackBar1.Value}, dy={trackBar2.Value}, WaitMs={trackBar3.Value}, DelayMs={trackBar4.Value})";
     notifyIcon1.Text           = toolStripStatusLabel1.Text;
 }
Ejemplo n.º 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (toolStripMenuItemActivate.Checked)
            {
                toolStripStatusLabel1.Text = $"Monitor active : (dy={trackBarDy.Value}, ShotInterval={trackBarShotInterval.Value}, PullDelay={trackBarPullDelay.Value})";
                notifyIcon1.Text           = toolStripStatusLabel1.Text;
            }
            else
            {
                notifyIcon1.Text = HelperFunctions.GetApplicationName();
            }

            poller.Poll(trackBarDy.Value, trackBarShotInterval.Value, trackBarPullDelay.Value, toolStripComboBoxFireButton.Text);
        }
Ejemplo n.º 3
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (toolStripMenuItemActivate.Checked)
     {
         toolStripStatusLabel1.Text = $"Monitor active : (dx={trackBar1.Value}, dy={trackBar2.Value}, WaitMs={trackBar3.Value}, DelayMs={trackBar4.Value})";
         notifyIcon1.Text           = toolStripStatusLabel1.Text;
     }
     else
     {
         toolStripStatusLabel1.Text = "Ready";
         notifyIcon1.Text           = HelperFunctions.GetApplicationName();
     }
     timer1.Interval = trackBar4.Value;
     poller.Poll(trackBar1.Value, trackBar2.Value, (uint)trackBar3.Value, toolStripComboBoxFireButton.Text);
 }