Exemplo n.º 1
0
 public void OpenProjectItem(string fileName, IImporter importer)
 {
     ProgressHelper.DoWork(
         (e) =>
     {
         return(EditorView.Project.Import(e.ToString(), importer));
     },
         (e) =>
     {
         if (e != null)
         {
             /*
              * EditorView.Shell.Invoke((Action)delegate
              * {
              *  ProjectItemView projectItemView = new ProjectItemView(this, (ProjectItem)e);
              *  ProjectItems.Add(projectItemView);
              *  //projectItemView.Show();
              * });
              */
         }
     }, fileName, Strings.Loading, fileName);
 }