private void LoadRepository() { Repository.objects.Clear(); var com = new LoadRepositoryAsJson(repository, $"SIM.Aibel.{Mediator.Context}"); try { com.Execute(); } catch (FileNotFoundException) { } }
private void button1_Click(object sender, EventArgs e) { if ((new AdminRepository()).GetAll() != null) { ClearAll(); } var ns = lblNamespace.Text.Trim(); var com = new LoadRepositoryAsJson(new AdminRepository(), ns); com.Execute(); UpdateNodes(); UpdateRelations(); }