コード例 #1
0
        public TypeViewModel(TypeInfo typeInfo, InteractionBrowserWindowViewModel windowViewModel)
        {
            TypeInfo         = typeInfo;
            _windowViewModel = windowViewModel;

            Hierarchies = new List <HierarchyViewModel>();
        }
コード例 #2
0
        public InteractionBrowserWindow(IEnumerable <TypeInfo> types, bool drawGraph)
        {
            InitializeComponent();

            ViewModel = new InteractionBrowserWindowViewModel(types, drawGraph);
            ViewModel.FillGraphRequest    += FillGraphRequestHandler;
            ViewModel.OriginalSizeRequest += OriginalSizeRequestHandler;
            ViewModel.FocusSearchRequest  += FocusSearchRequestHandler;

            Loaded   += new RoutedEventHandler(LoadedHandler);
            Unloaded += new RoutedEventHandler(UnloadedHandler);

            WindowManager.AddInteractionBrowser(this);
        }
コード例 #3
0
        public InteractionBrowserWindow(IEnumerable<TypeInfo> types, bool drawGraph)
        {
            InitializeComponent();

            ViewModel = new InteractionBrowserWindowViewModel(types, drawGraph);
            ViewModel.FillGraphRequest += FillGraphRequestHandler;
            ViewModel.OriginalSizeRequest += OriginalSizeRequestHandler;
            ViewModel.FocusSearchRequest += FocusSearchRequestHandler;

            Loaded += new RoutedEventHandler(LoadedHandler);
            Unloaded += new RoutedEventHandler(UnloadedHandler);

            WindowManager.AddInteractionBrowser(this);
        }