Esempio n. 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);
            }
        }
Esempio n. 2
0
 private void LayerPropertyChangedHandler(object sender, PropertyEventArgs e)
 {
     this.layerDescription.Text = layer.Name;
     this.layerVisible.Checked = layer.Visible;
 }
Esempio n. 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);
        }
Esempio n. 4
0
 private void LayerPropertyChangedHandler(object sender, PropertyEventArgs e)
 {
     this.layerDescription.Text = layer.Name;
     this.layerVisible.Checked  = layer.Visible;
 }