Exemple #1
0
        internal ProjectTreeNode(IBaseDirectoryProvider solutionPath, UAModelDesignerProject projectDescription)
            : this(solutionPath, projectDescription.Name)
        {
            UAModelDesignerProject = projectDescription;
            ModelDesign _model = ReadConfiguration();

            InitializeComponent(_model);
        }
Exemple #2
0
 internal ProjectTreeNode(IBaseDirectoryProvider solutionPath, string filePath, OPCFModelDesign model) :
     this(solutionPath, Path.GetFileNameWithoutExtension(filePath))
 {
     UAModelDesignerProject = new UAModelDesignerProject()
     {
         BuildOutputDirectoryName = Resources.DefaultOutputBuildDirectory,
         CSVFileName       = Resources.DefaultCSVFileName,
         FileName          = GetRelativePath(filePath),
         ProjectIdentifier = Guid.NewGuid().ToString(),
         Name = UniqueProjectName
     };
     InitializeComponent(new ModelDesign(model, false));
 }
Exemple #3
0
 public RepositoryFactory(IBaseDirectoryProvider baseDirectoryProvider)
 {
     BaseDirectoryProvider = baseDirectoryProvider;
 }
 /// <summary>
 /// Sets the base directory provider <see cref="IBaseDirectoryProvider"/>.
 /// </summary>
 /// <param name="provider">The provider of teh base directory <see cref="IBaseDirectoryProvider"/>.</param>
 public void SetBaseDirectoryProvider(IBaseDirectoryProvider provider)
 {
     myProvider = provider;
 }
Exemple #5
0
 private ProjectTreeNode(IBaseDirectoryProvider solutionPath, string nodeName) : base(null, nodeName)
 {
     m_SolutionHomeDirectory = solutionPath;
 }