Ejemplo n.º 1
0
 internal void initTime(DateTime time)
 {
     if (time != null && time > DateTime.MinValue)
     {
         time = time.AddMinutes(JournalShuffleUtils.shuffleNextValue(-8, 8));
     }
     startDateTxt.Value = time;
     startTimeTxt.Value = time;
 }
Ejemplo n.º 2
0
        private void RefreshPulseInfo(Range adRange, Range chsRange)
        {
            int nextAdValue = JournalShuffleUtils.shuffleNextValue(adRange.Start, adRange.End);

            if (nextAdValue < 40)
            {
                nextAdValue = 40;
            }
            if (nextAdValue > 150)
            {
                nextAdValue = 150;
            }
            nextAdValue         = (int)Math.Round((double)nextAdValue / 10) * 10;
            adTxt.SelectedIndex = adTxt.FindString(nextAdValue + "/");
            int chssNextValue = JournalShuffleUtils.shuffleNextValue(chsRange.Start, chsRange.End);

            chssTxt.SelectedIndex = chssTxt.FindString(chssNextValue + "");
            hasChanges            = true;
        }