public override string Execute(IList <string> parameters)
        {
            List <IFrameSection> frameSections = base.dbctx.FrameSections;
            var result = new StringBuilder();

            foreach (var frameSection in frameSections)
            {
                result.AppendLine(SectionService.AsString(frameSection));
            }

            return(result.ToString());
        }
Esempio n. 2
0
        public override string Execute(IList <string> parameters)
        {
            int sectionId;

            try
            {
                sectionId = int.Parse(parameters[0]);
            }
            catch
            {
                throw new ArgumentException("Failed to parse ShowFrameSection command parameters.");
            }

            IFrameSection frameSection = base.dbctx.FrameSections[sectionId];
            string        result       = SectionService.AsString(frameSection);

            return(result);
        }