Exemplo n.º 1
0
        private static void DrawFixedRule(StackPanel panel, FixedStringTransformRule rule, RuleViewer View)
        {
            FixedStringRuleProps drawer = new FixedStringRuleProps(rule, View);

            panel.Children.Clear();
            panel.Children.Add(drawer);
        }
        private void NewFixed_Clicked(object source, RoutedEventArgs e)
        {
            string path = Utils.getFullPath((View.ruleTree.docTreeViewer.SelectedItem as ITreeElement)?.Node);
            FixedStringTransformRule rule = new FixedStringTransformRule("", path);

            RulePropsDrawer.DrawRule(View.ruleProps, rule, View);
            CollapseExpander();
        }
 public FixedStringRuleProps(FixedStringTransformRule rule, RuleViewer View)
 {
     InitializeComponent();
     Rule             = rule;
     Copy             = (IXMLTransformRule)rule.Clone();
     this.View        = View;
     this.View.Props  = this;
     this.DataContext = Copy;
 }