Ejemplo n.º 1
0
        private void MarqPonto_Load(object sender, EventArgs e)
        {
            if (Application.OpenForms["LoginView"] == null)
            {
                Fader = new Fader(this, this);

                DoubleBuffered  = true;
                TransparencyKey = Color.Lime;
                Opacity         = Fader.idleOpacity;

                FaderThread();
                fadeIn.Start();

                //TODO aplicar tempo da carga horária
                timeLeft = 5000;

                //Start Timer Counter
                TimerMaster.Start();
                TimerInteractIn.Start();
            }

            NotifyIcon.Visible = true;

            Top = Screen.PrimaryScreen.WorkingArea.Right - Width;
            Top = 0;
        }
Ejemplo n.º 2
0
        private void ChangeTimerTasks()
        {
            if (TimerInteractIn.Enabled)
            {
                SyncInfo.Visible = false;

                interacts = 0;
                timerIn   = 0;
                TimerInteractIn.Stop();
                TimerInteractOut.Start();
            }

            else if (TimerInteractOut.Enabled)
            {
                SyncInfo.Visible = true;

                interacts = 0;
                timerOut  = 0;
                TimerInteractOut.Stop();
                TimerInteractIn.Start();
            }
        }