public bool RemoveScreen(long id) { if (ScreenCollection.Count(ent => ent.ID == id) > 0) { return(ScreenCollection.Remove(ScreenCollection.First(ent => ent.ID == id))); } else { return(false); } }
public Screen GetScreen(string name) { if (ScreenCollection.Count(ent => ent.Name == name) > 0) { return(ScreenCollection.First(ent => ent.Name == name)); } else { return(null); } }
public Screen GetScreen(long id) { if (ScreenCollection.Count(ent => ent.ID == id) > 0) { return(ScreenCollection.First(ent => ent.ID == id)); } else { return(null); } }
public bool RegisterScreen(Screen screen) { if (ScreenCollection.Count(ent => ent.ID == screen.ID) > 0) { return(false); } else { ScreenCollection.Add(screen); return(true); } }