public ISimulator Get(string sim) { if (Sims == null) { return(null); } else { return(Sims.Where(x => x.ProcessName.Equals(sim)).FirstOrDefault()); } }
/// <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); }