コード例 #1
0
        public MainViewModelBase(ProfilerPluginBase pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            PluginContext = pluginContext;
            GuiModelData = new GuiModelBase();
            DoOpenFile = new DelegateCommand<CallingMethodInfo>(OpenFile, info => true);
            DoCopySelectedLine = new DelegateCommand<object>(CopySelectedLine, info => true);
            DoCopyAllLines = new DelegateCommand<object>(CopyAllLines, info => true);
            DoOpenPopupToolTip = new DelegateCommand<object>(OpenPopupToolTip, info => true);
            DoOpenCommandToolTip = new DelegateCommand<Command>(OpenCommandToolTip, info => true);
            PluginContext.ProfilerData.ApplicationIdentities.CollectionChanged += ApplicationIdentities_CollectionChanged;
        }
コード例 #2
0
 public CallbacksManager(ProfilerPluginBase pluginContext, GuiModelBase guiModelData)
     : base(pluginContext, guiModelData)
 {
 }
コード例 #3
0
ファイル: MainViewModel.cs プロジェクト: yao-yi/DNTProfiler
 private void setGuiModel()
 {
     GuiModelData = new GuiModelBase();
     GuiModelData.PropertyChanged += GuiModelData_PropertyChanged;
 }