예제 #1
0
		public InplaceEditForm(Node oNode, TreeViewDesigner oDesigner)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			m_oNode = oNode;
			m_oDesigner = oDesigner;

			textBox1.Text = m_oNode.Text;
			textBox1.SelectAll();

			textBox1.LostFocus += new EventHandler(textBox1_LostFocus);
			textBox1.Focus();
		}
예제 #2
0
		public ColorSchemePickerForm(TreeView oTreeView, IDesignerHost oDesignerHost, TreeViewDesigner oDesigner)
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			m_oTreeView = oTreeView;
			m_oDesignerHost = oDesignerHost;
			m_oComponentDesigner = oDesigner;
			
			treeView1.Style.BorderStyle = m_oTreeView.Style.BorderStyle;		
			treeView1.Style.AutoCollapse = m_oTreeView.Style.AutoCollapse;
			treeView1.CheckBoxes = m_oTreeView.CheckBoxes;
			treeView1.Style.FlashColor = m_oTreeView.Style.FlashColor;
			treeView1.Style.HighlightSelectedPath = m_oTreeView.Style.HighlightSelectedPath;
			treeView1.Style.LineStyle = m_oTreeView.Style.LineStyle;
			treeView1.Style.ShowLines = m_oTreeView.Style.ShowLines;
			treeView1.Style.ShowPlusMinus = m_oTreeView.Style.ShowPlusMinus;
			treeView1.Style.ShowSubitemsIndicator = m_oTreeView.Style.ShowSubitemsIndicator;
			treeView1.Style.TrackNodeHover = m_oTreeView.Style.TrackNodeHover;			
			treeView1.Style.NodeStyle.SelectedFillStyle = m_oTreeView.Style.NodeStyle.SelectedFillStyle;	
	
			treeView1.Style.ApplyStyle(m_oTreeView.Style);
			treeView1.Style.NodeStyle.ApplyStyle(m_oTreeView.Style.NodeStyle);
			
			treeView1.ExpandAll();
			treeView1.Nodes[0].Nodes[0].Nodes[1].Select();
			treeView1.Refresh();			

			Node1.Tag = "color nodes";
			Node2.Tag = "color nodes";
			Node3.Tag = "color nodes";
			Node4.Tag = "color nodes";
			Node5.Tag = "color nodes";
			Node6.Tag = "color nodes";
		}