コード例 #1
0
		public ObjectGraphControl()
		{
			InitializeComponent();
			
			debuggerService = DebuggerService.CurrentDebugger as WindowsDebugger;
			if (debuggerService == null)
				throw new ApplicationException("Only windows debugger is currently supported");
			
			this.layoutViewModel = new EnumViewModel<LayoutDirection>();
			this.layoutViewModel.PropertyChanged += new PropertyChangedEventHandler(layoutViewModel_PropertyChanged);
			this.cmbLayoutDirection.DataContext = this.layoutViewModel;
			
			this.layouter = new TreeLayouter();
			this.graphDrawer = new GraphDrawer(this.canvas);
		}
コード例 #2
0
        public ObjectGraphControl()
        {
            InitializeComponent();

            debuggerService = DebuggerService.CurrentDebugger as WindowsDebugger;
            if (debuggerService == null)
            {
                throw new ApplicationException("Only windows debugger is currently supported");
            }

            this.layoutViewModel = new EnumViewModel <LayoutDirection>();
            this.layoutViewModel.PropertyChanged += new PropertyChangedEventHandler(layoutViewModel_PropertyChanged);
            this.cmbLayoutDirection.DataContext   = this.layoutViewModel;

            this.layouter    = new TreeLayouter();
            this.graphDrawer = new GraphDrawer(this.canvas);
        }