示例#1
0
 /// <summary>
 /// Show the properties of an image layer in the legend. 
 /// </summary>
 /// <param name="e"></param>
 public void ShowProperties(IImageLayer e)
 {
     using (var dlg = new PropertyDialog())
     {
         dlg.PropertyGrid.SelectedObject = e.Copy();
         dlg.OriginalObject = e;
         ShowDialog(dlg);
     }
 }
示例#2
0
 /// <summary>
 /// Show the properties of an image layer in the legend.
 /// </summary>
 /// <param name="e"></param>
 public void ShowProperties(IImageLayer e)
 {
     using (var dlg = new PropertyDialog())
     {
         dlg.PropertyGrid.SelectedObject = e.Copy();
         dlg.OriginalObject = e;
         ShowDialog(dlg);
     }
 }
        /// <summary>
        /// Sets up the Table to work with the specified layer
        /// </summary>
        /// <param name="layer"></param>
        public void Initialize(IImageLayer layer)
        {
            if (layer.Symbolizer == null) layer.Symbolizer = new ImageSymbolizer();
            _originalLayer = layer;
            _symbolizer = layer.Symbolizer;
            _newLayer = layer.Copy();

            _ignoreRefresh = true;
            rsOpacity.Value = _symbolizer.Opacity;
            _ignoreRefresh = false;
        }
示例#4
0
        /// <summary>
        /// Sets up the Table to work with the specified layer
        /// </summary>
        /// <param name="layer"></param>
        public void Initialize(IImageLayer layer)
        {
            if (layer.Symbolizer == null)
            {
                layer.Symbolizer = new ImageSymbolizer();
            }
            _originalLayer = layer;
            _symbolizer    = layer.Symbolizer;
            _newLayer      = layer.Copy();

            _ignoreRefresh  = true;
            rsOpacity.Value = _symbolizer.Opacity;
            _ignoreRefresh  = false;
        }