Exemplo n.º 1
0
 public void UpdateLayerDescription(LayerContainerInterpreter container, int index)
 {
     _index     = index;
     _container = container;
     _addNewLayerTextBox.Text   = container.LayerNames[index];
     _colorBtnPicker.Background = new SolidColorBrush(ShapeUtils.ToWpfColor(container.LayerColors[index]));
     Title          = "Update Layer Name";
     _okNtn.Content = "_Update";
 }
 public LayerVisualDescription(ViewInfo viewInfo, int index, LayerView parentView)
 {
     _viewInfo   = viewInfo;
     _container  = _viewInfo.Document.Root.Get <LayerContainerInterpreter>();
     _index      = index;
     _parentView = parentView;
     Ensure.IsNotNull(_container);
     UpdateLayerValues();
 }
Exemplo n.º 3
0
        public AddLayerWindow(LayerContainerInterpreter container, bool updateValue)
        {
            Ensure.IsNotNull(container, "Layer Container should be defined!");
            _container   = container;
            _updateValue = updateValue;
            InitializeComponent();

            _colorBtnPicker.Background = new SolidColorBrush(ComputeRandomColor());
        }