RevitLookup.Test.TestForm.RestoreDialogState C# (CSharp) Method

RestoreDialogState() private method

Remember the last position selected in the tree
private RestoreDialogState ( ) : void
return void
        void RestoreDialogState()
        {
            // if we can remember the last selected node then select it
             if (m_memoryNode != null)
             {
            TreeNode[] foundNodes = m_treeView.Nodes.Find(m_memoryNode.Name, true);
            if (foundNodes.Length != 0)
               m_treeView.SelectedNode = foundNodes[0];
             }

             // set to last selected option
             m_checkBxBaseTestsInclude.Checked = m_includeBaseTests;
        }