Пример #1
0
        public LayerBoxItem CreateLayer(int position)
        {
            var newLayerItem = new FgLayerItem(_FgPreview, position);    // in case we just add new

            SetPropertyEventHandlers(newLayerItem);

            return(newLayerItem);
        }
Пример #2
0
 private void SetPropertyEventHandlers(FgLayerItem layer)
 {
     layer.TextChanged                 += OnTextChanged;
     layer.TextAttrChanged             += OnTextAttrChanged;
     layer.TextPosRelChanged           += OnTextPosRelChanged;
     layer.TextTransformChanged        += OnTextTransformChanged;
     layer.BackAttrChanged             += OnBackAttrChanged;
     layer.BackPosRelChanged           += OnBackPosRelChanged;
     layer.BackBorderNumbersRelChanged += OnBackBorderNumbersRelChanged;
     layer.BackTransformChanged        += OnBackTransformChanged;
 }