private void save(ConfigurationFormWriter formWriter, bool isLocal) { var writer = new ConfigWriter(); var file = formWriter.Configuration.ConfigurationFullpath; var content = writer.Transform(formWriter.Configuration); saveConfiguration(file, content); notifyVM(file, content, isLocal); }
private void write(string text) { var config = new ConfigurationFormWriter(false, new ConfigParser("").Parse(), new MSBuildLocator()); config.SetIgnoreThisUpgrade(text); var writer = new ConfigWriter(); var file = config.Configuration.ConfigurationFullpath; var content = writer.Transform(config.Configuration); saveConfiguration(file, content); }
private void btnUpdate_Click(object sender, EventArgs e) { saveDisableAll(); saveDisableAnonFeedback(); var writer = new ConfigWriter(); var file = _writer.Configuration.ConfigurationFullpath; var content = writer.Transform(_writer.Configuration); saveConfiguration(file, content); notifyVM(file, content); Close(); }