예제 #1
0
		protected override void InitializeComponents()
		{
			localVarList = new TreeViewAdv();
			localVarList.Columns.Add(nameColumn);
			localVarList.Columns.Add(valColumn);
			localVarList.Columns.Add(typeColumn);
			localVarList.UseColumns = true;
			localVarList.SelectionMode = TreeSelectionMode.Single;
			localVarList.LoadOnDemand = true;
			
			NodeIcon iconControl = new ItemIcon();
			iconControl.ParentColumn = nameColumn;
			localVarList.NodeControls.Add(iconControl);
			
			NodeTextBox nameControl = new ItemName();
			nameControl.ParentColumn = nameColumn;
			localVarList.NodeControls.Add(nameControl);
			
			NodeTextBox textControl = new ItemText();
			textControl.ParentColumn = valColumn;
			localVarList.NodeControls.Add(textControl);
			
			NodeTextBox typeControl = new ItemType();
			typeControl.ParentColumn = typeColumn;
			localVarList.NodeControls.Add(typeControl);
			
			localVarList.AutoRowHeight = true;
			
			RedrawContent();
			ResourceService.LanguageChanged += delegate { RedrawContent(); };
		}
예제 #2
0
		protected override void InitializeComponents()
		{
			watchList = new TreeViewAdv();
			watchList.Columns.Add(nameColumn);
			watchList.Columns.Add(valColumn);
			watchList.Columns.Add(typeColumn);
			watchList.UseColumns = true;
			watchList.SelectionMode = TreeSelectionMode.Single;
			watchList.LoadOnDemand = true;
			
			NodeIcon iconControl = new ItemIcon();
			iconControl.ParentColumn = nameColumn;
			watchList.NodeControls.Add(iconControl);
			
			NodeTextBox nameControl = new WatchItemName();
			nameControl.ParentColumn = nameColumn;
			watchList.NodeControls.Add(nameControl);
			
			NodeTextBox textControl = new ItemText();
			textControl.ParentColumn = valColumn;
			watchList.NodeControls.Add(textControl);
			
			NodeTextBox typeControl = new ItemType();
			typeControl.ParentColumn = typeColumn;
			watchList.NodeControls.Add(typeControl);
			
			watchList.AutoRowHeight = true;
			watchList.MouseDoubleClick += new MouseEventHandler(watchList_DoubleClick);
			watchList.ContextMenuStrip = MenuService.CreateContextMenu(this, "/SharpDevelop/Pads/WatchPad/ContextMenu");
			
			watchList.AllowDrop = true;
			watchList.DragEnter += new DragEventHandler(watchList_DragEnter);
			watchList.DragDrop += new DragEventHandler(watchList_DragDrop);
			
			watches = new List<TextNode>();
			
			ResourceService.LanguageChanged += delegate { OnLanguageChanged(); };
			OnLanguageChanged();
		}