void FilePicker_Loaded(object sender, RoutedEventArgs e) { Configuration exeConfiguration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); GraphExplorerSection section = (GraphExplorerSection)exeConfiguration.GetSection("graphExplorer"); var config = section.CsvGraphDataServiceConfig; tbRelationships.Text = config.EdgesFilePath; tbProperties.Text = config.VertexesFilePath; //throw new NotImplementedException(); }
private void btnSave_Click(object sender, RoutedEventArgs e) { try { Configuration exeConfiguration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); GraphExplorerSection section = (GraphExplorerSection)exeConfiguration.GetSection("graphExplorer"); var config = section.CsvGraphDataServiceConfig; config.EdgesFilePath = tbRelationships.Text; config.VertexesFilePath = tbProperties.Text; exeConfiguration.Save(ConfigurationSaveMode.Modified); RaiseSettingAppliedEvent(true); } catch (Exception ex) { MessageBox.Show(ex.Message); //throw; } }