Esempio n. 1
0
        public GridViewSummary RegisterSummary(string column, string formatString, CustomSummaryOperation operation,
                                               SummaryResultMethod getResult, string groupName)
        {
            GridViewGroup group = mGroups[groupName];

            if (group == null)
            {
                throw new Exception(String.Format(GROUP_NOT_FOUND, groupName));
            }

            // TO DO: Perform column validation...
            GridViewSummary s = new GridViewSummary(column, formatString, operation, getResult, group);

            group.AddSummary(s);

            return(s);
        }
Esempio n. 2
0
        public GridViewSummary RegisterSummary(string column, string formatString, SummaryOperation operation,
                                               string groupName)
        {
            if (operation == SummaryOperation.Custom)
            {
                throw new Exception(USE_ADEQUATE_METHOD_TO_REGISTER_THE_SUMMARY);
            }

            GridViewGroup group = mGroups[groupName];

            if (group == null)
            {
                throw new Exception(String.Format(GROUP_NOT_FOUND, groupName));
            }

            // TO DO: Perform column validation...
            GridViewSummary s = new GridViewSummary(column, formatString, operation, group);

            group.AddSummary(s);

            return(s);
        }