Ejemplo n.º 1
0
 /// <summary>
 /// This should update the timer row specified with the time specified.
 /// </summary>
 /// <param name="TimerRow">0 index; Timer to update;</param>
 /// <param name="time">TimeSpan to pass in.</param>
 public void disUpd1Row(int TimerRow, TimeSpan time)
 {
     if (!timerRowInRange(TimerRow))
     {
         return;
     }
     StaticUtility.getLabelYX(baseTLP, TimerRow + StaticUtility.visualNonTimerRows, 3).Text = time.ToString();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Handles stop looking correct.
        /// </summary>
        /// <param name="TLP"></param>
        /// <param name="stopped">TRUE means you should show stopped.</param>
        public static void setStopped(ref TableLayoutPanel TLP, bool stopped, xColors thm)
        {
            Label lbl = StaticUtility.getLabelYX(TLP, 0, 0);

            if (stopped)
            {
                lbl.Text      = "Stopped";
                lbl.ForeColor = thm.STOPPEDForeColor;
                lbl.BackColor = thm.STOPPEDBackColor;
            }
            else
            {
                lbl.Text      = "Stop";
                lbl.ForeColor = thm.defStopForeColor;
                lbl.BackColor = thm.defStopBackColor;
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="total"></param>
 public void disUpdTotal(TimeSpan total)
 {
     StaticUtility.getLabelYX(baseTLP, 0, 2).Text = "Total: " + total.ToString();
 }