private void NewRemove_Clicked(object source, RoutedEventArgs e)
        {
            string path = Utils.getFullPath((View.ruleTree.docTreeViewer.SelectedItem as ITreeElement)?.Node);
            RemoveNodeTransformRule rule = new RemoveNodeTransformRule(path);

            RulePropsDrawer.DrawRule(View.ruleProps, rule, View);
            CollapseExpander();
        }
        private void NewIncrement_Clicked(object source, RoutedEventArgs e)
        {
            ITreeElement item          = (ITreeElement)View.ruleTree.docTreeViewer.SelectedItem;
            string       path          = Utils.getFullPath(item?.Node as XmlNode);
            string       current_value = "";

            if (item != null)
            {
                current_value = ((XmlNode)item.Node).InnerText;
            }
            IncrementStringTransformRule rule = new IncrementStringTransformRule(current_value, path);

            RulePropsDrawer.DrawRule(View.ruleProps, rule, View);
            CollapseExpander();
        }
        private void NewSequence_Clicked(object source, RoutedEventArgs e)
        {
            ITreeElement item          = (ITreeElement)View.ruleTree.docTreeViewer.SelectedItem;
            string       path          = Utils.getFullPath(item?.Node as XmlNode);
            string       current_value = "Value";

            if (item != null)
            {
                current_value = item.Node.InnerText;
            }
            SequenceTransformRule rule = new SequenceTransformRule(new List <string>()
            {
                current_value
            }, path, 0);

            RulePropsDrawer.DrawRule(View.ruleProps, rule, View);
            CollapseExpander();
        }