Exemple #1
0
        protected override Collection <string> GetRequiredColumnNamesCore()
        {
            Collection <string> columns = new Collection <string>();

            // Grab any columns that the daytime style may need.
            Collection <string> daytimeColumns = daytimePointStyle.GetRequiredColumnNames();

            foreach (string column in daytimeColumns)
            {
                if (!columns.Contains(column))
                {
                    columns.Add(column);
                }
            }

            // Grab any columns that the nighttime style may need.
            Collection <string> nighttimeColumns = nighttimePointStyle.GetRequiredColumnNames();

            foreach (string column in nighttimeColumns)
            {
                if (!columns.Contains(column))
                {
                    columns.Add(column);
                }
            }

            // Make sure we add the timezone column
            if (!columns.Contains(timeZoneColumnName))
            {
                columns.Add(timeZoneColumnName);
            }

            return(columns);
        }
Exemple #2
0
        protected override Collection <string> GetRequiredColumnNamesCore()
        {
            // Here we grab the columns from the pointStyle and then add
            // the sizeColumn name to make sure we pull back the column
            //  that we need to calculate the size
            Collection <string> columns = new Collection <string>();

            columns = pointStyle.GetRequiredColumnNames();
            if (!columns.Contains(sizeColumnName))
            {
                columns.Add(sizeColumnName);
            }

            return(columns);
        }