예제 #1
0
        /// <summary>
        /// Gets the current model in use
        /// </summary>
        /// <returns></returns>
        public Model GetModelInUse()
        {
            Model model = null;

            try
            {
                WTMVersion version = this.IsRunning();
                if (version != null)
                {
                    OEM oem = version.GetOEMInUse();
                    oem.ExecSetting.Load(true);
                    model = oem.GetModelFromPath(oem.ExecSetting.PathLossFile);
                }
            }
            catch
            {
            }
            return(model);
        }
예제 #2
0
 /// <summary>
 /// Checks every 5 minutes for any test plan updates
 /// </summary>
 public void PeriodicallyCheckForTestPlanUpdates()
 {
     TestPlanUpdaterTimer.Enabled = false;
     try
     {
         WTMVersion runningVersion = IsRunning();
         if (runningVersion != null)
         {
             OEM oemInUse = runningVersion.GetOEMInUse();
             if (oemInUse != null && oemInUse.TestPlan != String.Empty)
             {
                 CheckForTestPlanUpdates(oemInUse);
             }
         }
     }
     catch (Exception ex)
     {
         Debug.Print("Periodically check for test plan updates exceptions: " + ex.ToString());
     }
     TestPlanUpdaterTimer.Enabled = true;
 }