Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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;
            }
        }