예제 #1
0
        public TBXDatCatWindow(string selected = "None: Do Not Map")
        {
            InitializeComponent();

            datcats = TBXDatabase.getAll();
            cleanData();

            populateListBox();
            //if (selected != null)
            //{
            int index = getListItemIndex(selected);

            (dcs_tbx.Items[index] as ListBoxItem).IsSelected = true;
            //}
        }
        public List <string> getDCsWithPicklists()
        {
            List <string> dcs = new List <string>();

            TBXDatabase.getDCsWithPicklists().ForEach(delegate(string tbx_dc) {
                foreach (string user_dc in Keys)
                {
                    List <string> tml = getTBXMappingList(user_dc);
                    if (Methods.inList(ref tml, tbx_dc))
                    {
                        dcs.Add(user_dc);
                    }
                }
            });

            return(dcs);
        }
예제 #3
0
        public List <string> GetDCsWithPicklists()
        {
            List <string> dcs = new List <string>();

            TBXDatabase.GetDCsWithPicklists().ForEach(delegate(string tbx_dc) {
                foreach (string user_dc in Keys)
                {
                    List <string> tml = GetTBXMappingList(user_dc);
                    if (tml.Contains(tbx_dc))
                    {
                        dcs.Add(user_dc);
                    }
                }
            });

            return(dcs);
        }