Exemplo n.º 1
0
 private void AlertChecked(bool cancelVoice)
 {
     try
     {
         if (NotifyVoice && cancelVoice)
         {
             Voice.Checked();
         }
         if (Battery.Checked() && NotifyWind)
         {
             NotifyIcon.ShowBalloonTip(1000, @"Notificación del estado de batería", Battery.Msg, ToolTipIcon.Info);
         }
         AuxAlertTime           = (int)(AuxTimeBatteryCheck * 60);
         ProgBarNextAlert.Value = AuxAlertTime;
         LbTime.Text            = TimeSpan.FromSeconds(AuxAlertTime).ToString(@"mm\:ss");
         TmWaitForResp.Stop();
         Battery.AuxAlert = false;
         if (!TmCheckPower.Enabled)
         {
             TmCheckPower.Start();
         }
         GbNextNot.Enabled = false;
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message);
     }
 }
Exemplo n.º 2
0
        private void AlertChecked()
        {
            var _checked = Battery.Checked();

            TmWaitForResp.Enabled = false;
            if (!_checked)
            {
                NewNotification(Battery.Msg);
            }
            BtnChecked.Enabled = false;
        }