예제 #1
0
        private void LoadRepository()
        {
            Repository.objects.Clear();
            var com = new LoadRepositoryAsJson(repository, $"SIM.Aibel.{Mediator.Context}");

            try
            {
                com.Execute();
            }
            catch (FileNotFoundException)
            {
            }
        }
예제 #2
0
        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();
        }