/// <summary>
        /// Create new instance of <see cref="AggregationSettingsDialog"/>
        /// </summary>
        /// <param name="layer">Layer to aggregate</param>
        public AggregationSettingsDialog(IFeatureLayer layer)
        {
            if (layer == null)
            {
                throw new ArgumentNullException("layer");
            }
            Contract.EndContractBlock();

            InitializeComponent();

            _layer    = layer;
            _settings = new AggregationSettings();

            Load += OnLoad;
        }
Exemple #2
0
        /// <summary>
        /// Create new instance of <see cref="Aggregator"/>
        /// </summary>
        /// <param name="settings">Settings</param>
        /// <param name="layer">Layer to update</param>
        /// <exception cref="ArgumentNullException">Raises if <paramref name="settings"/> or <paramref name="layer"/> is null.</exception>
        public Aggregator(AggregationSettings settings, IFeatureLayer layer)
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }
            if (layer == null)
            {
                throw new ArgumentNullException("layer");
            }
            Contract.EndContractBlock();

            _settings = settings;
            _layer    = layer;
        }