Example #1
0
        private void LayerPropertyChangedHandler(object sender, PropertyEventArgs e)
        {
            Layer layer = (Layer)sender;

            if (!layer.Visible && 
                layer == this.ActiveLayer && 
                this.Document.Layers.Count > 1 &&
                !History.IsExecutingMemento)
            {
                SelectClosestVisibleLayer(layer);
            }
        }
Example #2
0
 private void LayerPropertyChangedHandler(object sender, PropertyEventArgs e)
 {
     this.layerDescription.Text = layer.Name;
     this.layerVisible.Checked = layer.Visible;
 }
Example #3
0
        private void LayerPropertyChangingHandler(object sender, PropertyEventArgs e)
        {
            string nameFormat = PdnResources.GetString("LayerPropertyChanging.HistoryMementoNameFormat");
            string haName = string.Format(nameFormat, e.PropertyName);

            LayerPropertyHistoryMemento lpha = new LayerPropertyHistoryMemento(
                haName,
                PdnResources.GetImageResource("Icons.MenuLayersLayerPropertiesIcon.png"),
                this,
                this.Document.Layers.IndexOf(sender));

            this.History.PushNewMemento(lpha);
        }
Example #4
0
 private void LayerPropertyChangedHandler(object sender, PropertyEventArgs e)
 {
     this.layerDescription.Text = layer.Name;
     this.layerVisible.Checked  = layer.Visible;
 }