public LocalVarPad() { var res = new CommonResources(); res.InitializeComponent(); tree = new SharpTreeView(); tree.Root = new SharpTreeNode(); tree.ShowRoot = false; tree.View = (GridView)res["variableGridView"]; tree.ItemContainerStyle = (Style)res["itemContainerStyle"]; tree.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;25%;25%"); WindowsDebugger.RefreshingPads += RefreshPad; RefreshPad(); }
public WatchPad() { var res = new CommonResources(); res.InitializeComponent(); panel = new Grid(); toolBar = ToolBarService.CreateToolBar(toolBar, this, "/SharpDevelop/Pads/WatchPad/ToolBar"); panel.Children.Add(toolBar); tree = new SharpTreeView(); tree.Root = new WatchRootNode(); tree.ShowRoot = false; tree.View = (GridView)res["variableGridView"]; tree.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;25%;25%"); tree.MouseDoubleClick += delegate(object sender, MouseButtonEventArgs e) { if (this.tree.SelectedItem == null) { AddWatch(focus: true); } }; panel.Children.Add(tree); panel.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); panel.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }); Grid.SetRow(tree, 1); // ProjectService.SolutionLoaded += delegate { LoadNodes(); }; // SD.ProjectService.CurrentSolution.PreferencesSaving += delegate { SaveNodes(); }; // LoadNodes(); WindowsDebugger.RefreshingPads += RefreshPad; RefreshPad(); }