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

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

            return(command);
        }