示例#1
0
        /// <summary>
        /// Sets test time for a given server. Restarts the timer with the new Interval set
        /// </summary>
        /// <param name="server"></param>
        public void StartTest()
        {
            var server = CommandsMyTest.GetServer(this);

            Stop();
            var test = CommandsMyTest.Settings[server].TestState.GetEnumerator();

            test.MoveNext();
            Interval    = test.Current.Value.Time * 1e3;
            TestStarted = true;
            Start();
        }
示例#2
0
 public MyTestTimer(CommandsMyTest cmdMyTest, double interval) : base(interval)
 {
     CommandsMyTest = cmdMyTest;
     Interval       = interval;
 }
示例#3
0
 public MyTestTimer(CommandsMyTest cmdMyTest) : base()
 {
     CommandsMyTest = cmdMyTest;
     Interval       = TimeTick;
 }