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