Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
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;
        }
Exemplo n.º 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;
        }