Ejemplo n.º 1
0
 public JsonLoader(ProfilerPluginBase context, MainGuiModel mainGuiModel)
 {
     _context = context;
     _mainGuiModel = mainGuiModel;
 }
Ejemplo n.º 2
0
        private void initThisGuiModelData()
        {
            var settings = JsonHelper.DeserializeFromFile<DumperSettings>(_settingsPath);
            ThisGuiModelData = new MainGuiModel();

            if (settings == null)
            {
                ThisGuiModelData.DumperSettings.DumperDirectory = Path.Combine(AppMessenger.ExecutablePathDir, "Dumps");
            }
            else
            {
                ThisGuiModelData.DumperSettings = settings;
            }
            saveSettings();

            ThisGuiModelData.DumperSettings.PropertyChanged += DumperSettings_PropertyChanged;
        }