private void AddConvertionClassItem_Click(object sender, RoutedEventArgs e)
        {
            TreeViewItem        Newitem = new TreeViewItem();
            ConvertionClassItem fr      = new ConvertionClassItem(sIgnoredString, @"Attribute Name", Newitem);

            Newitem.Header     = fr;
            Newitem.IsExpanded = true;
            tvItem.Items.Add(Newitem);
        }
        private void AddNewObjectRow_Click(object sender, RoutedEventArgs e)
        {
            TreeViewItem        tvi = new TreeViewItem();
            ConvertionClassItem fr  = new ConvertionClassItem(ConvertionClassItem.sIgnoredString, @"Attribute Name", tvi);

            fr.convertionAttributeTB.Visibility = Visibility.Hidden;
            fr.convertionAttribute.Visibility   = Visibility.Hidden;
            fr.convertionAttribute.Text         = "";
            tvi.Header     = fr;
            tvi.IsExpanded = true;
            tviParent.Items.Insert(tviParent.Items.Count - 1, tvi);
        }
Exemple #3
0
        private void RemoveItemFromConvertionPathItems(TreeViewItem tvi)
        {
            ConvertionClassItem cci = (ConvertionClassItem)(tvi.Header);

            ComboBoxItem     cbiNew = new ComboBoxItem();
            ColoredObjectRow cor    = new ColoredObjectRow("", ConvertionClassItem.GetColorFromType(ConvertionPathItemsContainer.ConvertionCompareItemType.NotFromFlow), tvi);

            cbiNew.Content = cor;
            cci.convertToCombo.Items.Insert(cci.convertToCombo.Items.Count - 1, cbiNew);

            foreach (TreeViewItem tvi_ in tvi.Items)
            {
                //     AddNewItemToConvertionPathItems(sValue, tvi_);
            }
        }
Exemple #4
0
        private void AddConvertionRec(ValidatorCoreLib.ConvertionTree vci, TreeViewItem tvi, Boolean bHead)
        {
            ConvertionClassItem cci = new ConvertionClassItem(vci.convertionPath, vci.convertionAttribute, tvi);

            if (bHead)
            {
                cci.convertionAttributeTB.Visibility = Visibility.Hidden;
                cci.convertionAttribute.Visibility   = Visibility.Hidden;
                cci.convertionAttribute.Text         = "";
            }
            tvi.Header     = cci;
            tvi.IsExpanded = true;

            foreach (ValidatorCoreLib.ConvertionTree chiled_vci in vci.convertionItems)
            {
                TreeViewItem Newitem = new TreeViewItem();
                Newitem.IsExpanded = true;
                AddConvertionRec(chiled_vci, Newitem, false);
                tvi.Items.Add(Newitem);
            }
        }