示例#1
0
 public ControlVM(IThreadsVM vm, ThreadsOperations operations, IMessageBoxService messageBoxService, DependencyObject control)
 {
     VM                     = vm;
     Operations             = operations;
     this.messageBoxService = messageBoxService;
     this.control           = control;
 }
示例#2
0
        ThreadsContent(IWpfCommandService wpfCommandService, IThreadsVM threadsVM, ThreadsOperations threadsOperations, IMessageBoxService messageBoxService)
        {
            Operations                 = threadsOperations;
            threadsControl             = new ThreadsControl();
            this.threadsVM             = threadsVM;
            threadsControl.DataContext = new ControlVM(threadsVM, threadsOperations, messageBoxService, threadsControl);
            threadsControl.ThreadsListViewDoubleClick += ThreadsControl_ThreadsListViewDoubleClick;

            wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_THREADS_CONTROL, threadsControl);
            wpfCommandService.Add(ControlConstants.GUID_DEBUGGER_THREADS_LISTVIEW, threadsControl.ListView);
        }
示例#3
0
文件: Commands.cs 项目: zz110/dnSpy
 public ThreadsCtxMenuContext(ThreadsOperations operations) => Operations = operations;