/// <summary>
 ///
 /// </summary>
 /// <param name="target"></param>
 public void displayCombinedTransformationTree(Kernel.Domain.CombinedTransformationTree combinedTransformationTree)
 {
     if (combinedTransformationTree == null)
     {
         return;
     }
     nameTextBox.Text = combinedTransformationTree.name;
     groupField.Group = combinedTransformationTree.group;
     visibleInShortcutCheckBox.IsChecked = combinedTransformationTree.visibleInShortcut;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="target"></param>
 public void fillCombinedTransformationTree(Kernel.Domain.CombinedTransformationTree combinedTransformationTree)
 {
     if (combinedTransformationTree == null)
     {
         return;
     }
     combinedTransformationTree.name              = nameTextBox.Text;
     groupField.Group.subjectType                 = Kernel.Domain.SubjectType.COMBINED_TRANSFORMATION_TREE.label;
     combinedTransformationTree.group             = groupField.Group;
     combinedTransformationTree.visibleInShortcut = visibleInShortcutCheckBox.IsChecked.Value;
 }
Example #3
0
        private void OnClear(object sender, System.Windows.RoutedEventArgs e)
        {
            if (this.GetBrowser().Form.Grid.SelectedItems.Count == 0)
            {
                return;
            }
            TableActionData tableActionData = new TableActionData();

            foreach (object tree in this.GetBrowser().Form.Grid.SelectedItems)
            {
                BrowserData bData = (BrowserData)tree;
                int         oid   = (int)bData.oid;
                Kernel.Domain.CombinedTransformationTree ctree = GetCombineTransformationTreeService().getByOid(oid);
            }

            //tableActionData.oids.Add(oid);
            //GetCombineTransformationTreeService().TransformationTreeService.ClearTreeHandler += updateClearProgress;
            GetCombineTransformationTreeService().TransformationTreeService.ClearTree(tableActionData);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="table"></param>
        public void DisplayTransformationTrees(Kernel.Domain.CombinedTransformationTree combinedTransformationTree)
        {
            this.CombinedTransformationTree = combinedTransformationTree;
            this.panel.Children.Clear();
            int index = 1;

            if (combinedTransformationTree == null)
            {
                this.ActiveItemPanel = new TransformationTreeItemPanel(index);
                AddItemPanel(this.ActiveItemPanel);
                return;
            }
            combinedTransformationTree.treeItemListChangeHandler.Items.BubbleSort();
            foreach (Kernel.Domain.CombinedTransformationTreeItem item in combinedTransformationTree.treeItemListChangeHandler.Items)
            {
                TransformationTreeItemPanel itemPanel = new TransformationTreeItemPanel(item);
                AddItemPanel(itemPanel);
                index++;
            }
            this.ActiveItemPanel = new TransformationTreeItemPanel(index);
            AddItemPanel(this.ActiveItemPanel);
        }
        public void updateTarget(Kernel.Domain.CombinedTransformationTree inputTable, Kernel.Domain.CombinedTransformationTree inpuTTable)
        {
            int    index        = 0;
            int    pos          = 0;
            int    pos1         = 0;
            bool   found        = false;
            bool   found1       = false;
            string newName      = inputTable.name;
            string oldTableName = inpuTTable.name;

            Kernel.Domain.Browser.BrowserData input = null;
            foreach (Kernel.Domain.Browser.BrowserData inputtable in this.liste)
            {
                if (!found)
                {
                    if (inputtable.name == inputTable.name)
                    {
                        inputtable.name = inpuTTable.name;
                        found           = true;
                        input           = inputtable;
                        pos             = index;
                    }
                }
                if (!found1)
                {
                    if (inputtable.name == inpuTTable.name)
                    {
                        pos1   = index;
                        found1 = true;
                    }
                }
                index++;
            }

            this.liste[pos] = input;
            this.cvs.DeferRefresh();
        }