Пример #1
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            ThisGuiModelData = new MainGuiModel();
            setActions();
        }
Пример #2
0
        public ChartsViewModelBase(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            CallbacksManagerBase = new CallbacksManagerBase(PluginContext, GuiModelData);
            GuiModelData.PropertyChanged += GuiModelData_PropertyChanged;
            CustomTooltipProvider = new CustomTooltipProvider { GetCustomTooltip = GetCustomTooltip };
        }
Пример #3
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            setActions();
            setGuiModel();
            setEvenets();
        }
Пример #4
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            setActions();
            setGuiModel();
            _callbacksManager = new CallbacksManager(PluginContext, GuiModelData);
            setEvenets();
        }
Пример #5
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            ThisGuiModelData = new MainGuiModel();
            ThisGuiModelData.PropertyChanged += ThisGuiModelData_PropertyChanged;
            setActions();
            setEvenets();
        }
Пример #6
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            manageAppExit();
            initThisGuiModelData();
            setActions();
            setEvenets();
            setCommands();
            setDirectoryMonitor();
        }
Пример #7
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;
        }
Пример #8
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Request IDs";
            AddXAxis("Request ID");
            AddYAxis("Commands Count");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Пример #9
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Execution Time";
            AddXAxis("Command (Id)");
            AddYAxis("Execution Time (ms)");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Пример #10
0
        public MainViewModel(ProfilerPluginBase pluginContext)
            : base(pluginContext)
        {
            if (Designer.IsInDesignModeStatic)
                return;

            SetActions();
            setEvenets();

            GuiModelData.PlotModel.Title = "Commands By Memory Usage";
            AddXAxis("Command (Id)");
            AddYAxis("Allocated Memory Size (KB)");
            InitPlotModelEvents();
            InitUpdatePlotInterval();
        }
Пример #11
0
 public CallbacksManager(ProfilerPluginBase pluginContext, GuiModelBase guiModelData)
     : base(pluginContext, guiModelData)
 {
 }
Пример #12
0
 public Main(ProfilerPluginBase pluginContext)
 {
     InitializeComponent();
     this.DataContext = new MainViewModel(pluginContext);
 }
Пример #13
0
 public JsonLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }
Пример #14
0
 public ProjectReleasesLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }