Esempio n. 1
0
        TestForm(ArrayList testFuncs)
        {
            InitializeComponent();

            // Set the column sorter for the list view
            m_colSorter = new RevitLookup.Utils.ListViewColumnSorter();
            m_lvData.ListViewItemSorter = m_colSorter;

            m_treeView.BeginUpdate();

            // sort the TestFuncInfo objects into buckets
            foreach (RevitLookupTestFuncs testFuncGroup in testFuncs)
            {
                foreach (RevitLookupTestFuncInfo testFuncInfo in testFuncGroup.m_testFuncs)
                {
                    AddFuncToBucket(testFuncInfo);
                }
            }

            BuildTree();

            m_treeView.ExpandAll();
            m_treeView.EndUpdate();

            m_treeView.AfterSelect += new TreeViewEventHandler(TreeView_AfterSelect);

            RestoreDialogState();
        }
Esempio n. 2
0
        ParamEnum(ArrayList labelStrs, ArrayList valueStrs)
        {
            InitializeComponent();

            // Add Load to update ListView Width
            Utils.AddOnLoadForm(this);

            // Set the column sorter for the list view
            m_colSorter = new RevitLookup.Utils.ListViewColumnSorter( );
            m_listView.ListViewItemSorter = m_colSorter;

            m_listView.BeginUpdate();

            //Debug.Assert(labelStrs.Count == valueStrs.Count);

            int len = valueStrs.Count;

            for (int i = 0; i < len; i++)
            {
                ListViewItem lvItem = new ListViewItem((string)labelStrs[i]);
                lvItem.SubItems.Add((string)valueStrs[i]);
                m_listView.Items.Add(lvItem);
            }

            m_listView.EndUpdate();
        }
Esempio n. 3
0
        ParamEnum(ArrayList labelStrs, ArrayList valueStrs)
        {
            InitializeComponent();
            
                // Set the column sorter for the list view
            m_colSorter = new RevitLookup.Utils.ListViewColumnSorter( );
            m_listView.ListViewItemSorter = m_colSorter;
            
            m_listView.BeginUpdate();
            
            //Debug.Assert(labelStrs.Count == valueStrs.Count);

            int len = valueStrs.Count;
            for (int i=0; i<len; i++) {
                ListViewItem lvItem = new ListViewItem((string)labelStrs[i]);
                lvItem.SubItems.Add((string)valueStrs[i]);
                m_listView.Items.Add(lvItem);
            }
            
            m_listView.EndUpdate();
        }
        /// <summary>
        /// Generic dialog that will display and organize a set of test functions
        /// </summary>
        /// <param name="testFuncs">Array of TestFuncInfo objects</param>
        public TestForm(ArrayList testFuncs)
        {
            InitializeComponent();

             // Set the column sorter for the list view
             m_colSorter = new RevitLookup.Utils.ListViewColumnSorter();
             m_lvData.ListViewItemSorter = m_colSorter;

             m_treeView.BeginUpdate();

             // sort the TestFuncInfo objects into buckets
             foreach (RevitLookupTestFuncs testFuncGroup in testFuncs)
             {
            foreach (RevitLookupTestFuncInfo testFuncInfo in testFuncGroup.m_testFuncs)
            {
               AddFuncToBucket(testFuncInfo);
            }
             }

             BuildTree();

             m_treeView.ExpandAll();
             m_treeView.EndUpdate();

             m_treeView.AfterSelect += new TreeViewEventHandler(TreeView_AfterSelect);

             RestoreDialogState();
        }