public static ScreenDataCommand GetDataCommand(List <ScreenDataCommand> datacommands, string DataCommandName) { ScreenDataCommand command = datacommands .Where(d => ( (d.Name.ToLower() == DataCommandName.ToLower()) ) ) .SingleOrDefault(); return(command); }
public static ScreenDataCommand GetDataCommand(Screen screen, string DataCommandName) { ScreenDataCommand command = screen.DataCommands .Where(d => ( (d.Name.ToLower() == DataCommandName.ToLower()) ) ) .SingleOrDefault(); return(command); }