Пример #1
0
		public LoadedModulesPad()
		{
			var res = new CommonResources();
			res.InitializeComponent();
			
			listView = new ListView();
			listView.View = (GridView)res["loadedModulesGridView"];
			listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;70;50%;35;120");
			
			WindowsDebugger.RefreshingPads += RefreshPad;
			RefreshPad();
		}
Пример #2
0
		public BreakPointsPad()
		{
			var res = new CommonResources();
			res.InitializeComponent();
			
			Grid grid = (Grid)this.Control;
			ToolBar toolbar = ToolBarService.CreateToolBar(grid, this, "/SharpDevelop/Pads/BreakpointPad/Toolbar");
			grid.Children.Add(toolbar);
			
			this.control.listView.View = (GridView)res["breakpointsGridView"];
			this.control.listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "35;50%;50%");
		}
Пример #3
0
        public LoadedModulesPad()
        {
            var res = new CommonResources();

            res.InitializeComponent();

            listView      = new ListView();
            listView.View = (GridView)res["loadedModulesGridView"];
            listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "50%;70;50%;35;120");

            WindowsDebugger.RefreshingPads += RefreshPad;
            RefreshPad();
        }
Пример #4
0
        public BreakPointsPad()
        {
            var res = new CommonResources();

            res.InitializeComponent();

            Grid    grid    = (Grid)this.Control;
            ToolBar toolbar = ToolBarService.CreateToolBar(grid, this, "/SharpDevelop/Pads/BreakpointPad/Toolbar");

            grid.Children.Add(toolbar);

            this.control.listView.View = (GridView)res["breakpointsGridView"];
            this.control.listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "35;50%;50%");
        }
Пример #5
0
		public CallStackPad()
		{
			var res = new CommonResources();
			res.InitializeComponent();
			
			listView = new ListView();
			listView.View = (GridView)res["callstackGridView"];
			listView.MouseDoubleClick += listView_MouseDoubleClick;
			listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "100%");
			
			listView.ContextMenu = CreateMenu();
			
			WindowsDebugger.RefreshingPads += RefreshPad;
			RefreshPad();
		}
Пример #6
0
		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();
		}
Пример #7
0
        public CallStackPad()
        {
            var res = new CommonResources();

            res.InitializeComponent();

            listView                   = new ListView();
            listView.View              = (GridView)res["callstackGridView"];
            listView.MouseDoubleClick += listView_MouseDoubleClick;
            listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "100%");

            listView.ContextMenu = CreateMenu();

            WindowsDebugger.RefreshingPads += RefreshPad;
            RefreshPad();
        }
Пример #8
0
        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();
        }
Пример #9
0
		public ThreadsPad()
		{
			var res = new CommonResources();
			res.InitializeComponent();
			
			ContextMenu contextMenu = new ContextMenu();
			contextMenu.Opened += FillContextMenuStrip;
			
			listView = new ListView();
			listView.View = (GridView)res["threadsGridView"];
			listView.ContextMenu = contextMenu;
			listView.MouseDoubleClick += listView_MouseDoubleClick;
			listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "70;100%;75;75");
			
			WindowsDebugger.RefreshingPads += RefreshPad;
			RefreshPad();
		}
Пример #10
0
        public ThreadsPad()
        {
            var res = new CommonResources();

            res.InitializeComponent();

            ContextMenu contextMenu = new ContextMenu();

            contextMenu.Opened += FillContextMenuStrip;

            listView                   = new ListView();
            listView.View              = (GridView)res["threadsGridView"];
            listView.ContextMenu       = contextMenu;
            listView.MouseDoubleClick += listView_MouseDoubleClick;
            listView.SetValue(GridViewColumnAutoSize.AutoWidthProperty, "70;100%;75;75");

            WindowsDebugger.RefreshingPads += RefreshPad;
            RefreshPad();
        }
Пример #11
0
        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();
        }