Ejemplo n.º 1
0
 public ISimulator Get(string sim)
 {
     if (Sims == null)
     {
         return(null);
     }
     else
     {
         return(Sims.Where(x => x.ProcessName.Equals(sim)).FirstOrDefault());
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the simulator that is running. If mutltiple are; the first one is picked.
        /// </summary>
        /// <returns></returns>
        public ISimulator GetRunning()
        {
            if (Sims == null)
            {
                return(null);
            }
            if (Network != null && Network.Attached)
            {
                return(Network);
            }

            if (Available)
            {
                return(Sims.Where(x => x.Attached).FirstOrDefault());
            }
            return(null);
        }