Beispiel #1
0
        private void loadModel(ParameterConfiguration config, Loader.LoaderTask task)
        {
            try {
                // Create a new loader and LoadingProgressForm and execute the loading
                Loader loader = new Loader(config, task);
                LoadingProgressForm lprogf = new LoadingProgressForm(loader);
                lprogf.ShowDialog();

                model = loader.GetModel();
                loadTree();
            } catch (Exception e) {
                MessageBox.Show(String.Format("Cannot load model for current configuration:\n\n\"{0}\"", e));
                return;
            }
        }
Beispiel #2
0
        private void loadModel(ParameterConfiguration config, Loader.LoaderTask task)
        {
            try {
            // Create a new loader and LoadingProgressForm and execute the loading
            Loader loader = new Loader(config, task);
            LoadingProgressForm lprogf = new LoadingProgressForm(loader);
            lprogf.ShowDialog();

            model = loader.GetModel();
            loadTree();
              } catch (Exception e) {
            MessageBox.Show(String.Format("Cannot load model for current configuration:\n\n\"{0}\"", e));
            return;
              }
        }