Esempio n. 1
0
        public static ScreenDataCommand GetDataCommand(List <ScreenDataCommand> datacommands, string DataCommandName)
        {
            ScreenDataCommand command = datacommands
                                        .Where(d =>
                                               (
                                                   (d.Name.ToLower() == DataCommandName.ToLower())
                                               )
                                               )
                                        .SingleOrDefault();

            return(command);
        }
Esempio n. 2
0
        public static ScreenDataCommand GetDataCommand(Screen screen, string DataCommandName)
        {
            ScreenDataCommand command = screen.DataCommands
                                        .Where(d =>
                                               (
                                                   (d.Name.ToLower() == DataCommandName.ToLower())
                                               )
                                               )
                                        .SingleOrDefault();

            return(command);
        }