private void SaveConfig() { if (File.Exists("Etl.json")) { File.Delete("Etl.json"); } File.WriteAllText("Etl.json", JsonConvert.SerializeObject(ConfiguredEtlSteps.ToList(), jsonSerializerSettings)); }
private void AddSelectedEtlStep() { if (SelectedAvailableEtlStep != null) { var etlStepType = SelectedAvailableEtlStep.Type; var newStep = new ConfiguredEtlStep { StepType = etlStepType, Config = etlStepType.GetNewIConfigurableConfigurationObject() }; ConfiguredEtlSteps.Add(newStep); } }