Ejemplo n.º 1
0
 private void timerEverySecond_Tick(object sender, EventArgs e)
 {
     if (this.privateFillingLineData != null)
     {
         if (this.privateFillingLineData.SettingMonthID != GlobalStaticFunction.DateToContinuosMonth())
         {
             this.pictureBoxWarningNewMonth.Visible = !this.pictureBoxWarningNewMonth.Visible; this.labelWarningNewMonth.Visible = !this.labelWarningNewMonth.Visible;
         }
         else
         {
             this.pictureBoxWarningNewMonth.Visible = false; this.labelWarningNewMonth.Visible = false;
         }
     }
 }
Ejemplo n.º 2
0
 private void timerEverySecond_Tick(object sender, EventArgs e)
 {
     try
     {
         this.toolStripTextBoxCurrentDate.TextBox.Text = DateTime.Now.ToString("dd/MM/yy");
         if (this.fillingLineData != null)
         {
             if (this.fillingLineData.SettingMonthID != GlobalStaticFunction.DateToContinuosMonth())
             {
                 this.toolStripButtonWarningNewMonth.Visible = !this.toolStripButtonWarningNewMonth.Visible; this.toolStripLabelWarningNewMonth.Visible = !this.toolStripLabelWarningNewMonth.Visible;
             }
             else
             {
                 this.toolStripButtonWarningNewMonth.Visible = false; this.toolStripLabelWarningNewMonth.Visible = false;
             }
         }
     }
     catch (Exception exception)
     {
         GlobalExceptionHandler.ShowExceptionMessageBox(this, exception);
     }
 }