Пример #1
0
 void LoadFiles(IProject project)
 {
     foreach (ProjectItem item in project.Items)
     {
         FileProjectItem fileItem = item as FileProjectItem;
         if (fileItem != null && File.Exists(item.FileName))
         {
             mainForm.LoadFile(item.FileName);
         }
     }
 }
Пример #2
0
        public IViewContent CreateContentForFile(OpenedFile file)
        {
            MainForm form = WorkbenchSingleton.MainForm as MainForm;

            return(form.LoadFile(file.FileName));
        }