Example #1
0
 private void layerController_LayerRemoved(object sender, LayersEventArgs e)
 {
     foreach (Layer layer in e.Layers)
     {
         layerView.RemoveLayer(layer);
     }
 }
Example #2
0
 private void diagrammController_ActiveLayersChanged(object sender, LayersEventArgs e)
 {
     if (LayerModified != null)
     {
         LayerModified(this, e);
     }
 }
Example #3
0
 private void diagramPresenter_ActiveLayersChanged(object sender, LayersEventArgs e)
 {
     foreach (Layer layer in e.Layers)
     {
         layerView.RefreshLayer(layer, diagramPresenter.IsLayerActive(layer.Id), diagramPresenter.IsLayerVisible(layer.Id));
     }
 }
Example #4
0
 /// <ToBeCompleted></ToBeCompleted>
 protected void OnSelectedLayersChanged(object sender, LayersEventArgs e)
 {
     if (LayerSelectionChanged != null)
     {
         LayerSelectionChanged(sender, e);
     }
 }
Example #5
0
 private void diagramController_LayerVisibilityChanged(object sender, LayersEventArgs e)
 {
     if (LayerModified != null)
     {
         LayerModified(this, e);
     }
 }
Example #6
0
 private void layerController_LayerAdded(object sender, LayersEventArgs e)
 {
     // Create LayerView items for the new layers
     if (e.Layers != null && layerView != null)
     {
         AddLayerItemsToLayerView(e.Layers);
     }
 }
Example #7
0
 private void diagramPresenter_LayerVisibilityChanged(object sender, LayersEventArgs e)
 {
     _layerView.BeginUpdate();
     foreach (Layer layer in e.Layers)
     {
         _layerView.RefreshLayer(layer, _diagramPresenter.IsLayerActive(layer.LayerId), _diagramPresenter.IsLayerVisible(layer.LayerId));
     }
     _layerView.EndUpdate();
 }
Example #8
0
 private void diagramPresenter_ActiveLayersChanged(object sender, LayersEventArgs e)
 {
     // When activating layers, we have to update all layers in the list because activating a home layer deactivates the other home layer(s).
     _layerView.BeginUpdate();
     foreach (Layer layer in _diagramPresenter.Diagram.Layers)
     {
         _layerView.RefreshLayer(layer, _diagramPresenter.IsLayerActive(layer.LayerId), _diagramPresenter.IsLayerVisible(layer.LayerId));
     }
     _layerView.EndUpdate();
 }
Example #9
0
 private void _layerView_SelectedLayerChanged(object sender, LayersEventArgs e)
 {
     if (EnumerationHelper.IsEmpty(e.Layers))
     {
         UnselectAllLayers();
     }
     else
     {
         SetSelectedLayers(e.Layers);
     }
 }
Example #10
0
 private void layerController_LayerModified(object sender, LayersEventArgs e)
 {
     if (e.Layers != null && layerView != null)
     {
         bool isActive, isVisible;
         foreach (Layer layer in e.Layers)
         {
             GetLayerState(layer, out isActive, out isVisible);
             layerView.RefreshLayer(layer, isActive, isVisible);
         }
     }
 }
Example #11
0
 private void layerController_LayerRemoved(object sender, LayersEventArgs e)
 {
     foreach (Layer layer in e.Layers)
         layerView.RemoveLayer(layer);
 }
Example #12
0
 private void layerController_LayerModified(object sender, LayersEventArgs e)
 {
     if (e.Layers != null && layerView != null) {
         bool isActive, isVisible;
         foreach (Layer layer in e.Layers) {
             GetLayerState(layer, out isActive, out isVisible);
             layerView.RefreshLayer(layer, isActive, isVisible);
         }
     }
 }
Example #13
0
 private void layerController_LayerAdded(object sender, LayersEventArgs e)
 {
     // Create LayerView items for the new layers
     if (e.Layers != null && layerView != null)
         AddLayerItemsToLayerView(e.Layers);
 }
Example #14
0
 private void diagramPresenter_LayerVisibilityChanged(object sender, LayersEventArgs e)
 {
     foreach (Layer layer in e.Layers)
         layerView.RefreshLayer(layer, diagramPresenter.IsLayerActive(layer.Id), diagramPresenter.IsLayerVisible(layer.Id));
 }
Example #15
0
 /// <ToBeCompleted></ToBeCompleted>
 protected void OnSelectedLayersChanged(object sender, LayersEventArgs e)
 {
     if (LayerSelectionChanged != null) LayerSelectionChanged(sender, e);
 }
Example #16
0
		private void diagramController_LayerVisibilityChanged(object sender, LayersEventArgs e)
		{
			if (LayerModified != null) LayerModified(this, e);
		}
Example #17
0
		private void diagrammController_ActiveLayersChanged(object sender, LayersEventArgs e)
		{
			if (LayerModified != null) LayerModified(this, e);
		}