예제 #1
0
 protected override void OnClosing(CancelEventArgs e)
 {
     // When closing the window, we will release elements in the group.
     pGroup.Clear();
     // Release the resource in the 3D viewer engine.
     pGroup.Dispose();
     // Remove the reference to the menu items objects.
     base.OnClosing(e);
 }
예제 #2
0
        private void mToolStripButton_Click(object sender, EventArgs e)
        {
            if (m_Selection == null)
            {
                m_Selection = SDKViewer.GroupManager.CreateEmptyGroup();
            }
            else
            {
                m_Selection.Clear();
            }

            m_RichTextBox.Clear();

            string searchtext = mToolStripTextBox.Text;
            var    branches   = SDKViewer.ProjectManager.CurrentProject.BranchManager.GetBranchesByNameFragmentAndKind(searchtext, VRBranchKind.Cad);

            foreach (IVRBranch branch in branches)
            {
                m_RichTextBox.Text += branch.Name;
                m_RichTextBox.Text += "\r\n";
                m_Selection.Add(branch);
            }

            m_Selection.Highlight(Color.FromArgb(255, 32, 255, 255));
            m_Selection.JumpTo();
        }