Пример #1
0
        public void ImportNodeSet()
        {
            ProjectTreeNode node = ProjectTreeNode.ImportNodeSet(this, x => AssemblyTraceEvent.Tracer.TraceEvent(x.TraceLevel, 186, x.ToString()), IO.ImportNodeSet.Import);

            if (node == null)
            {
                return;
            }
            Add(node);
        }
Пример #2
0
        public void AddProject(bool existing)
        {
            ProjectTreeNode _node = null;

            if (existing)
            {
                _node = ProjectTreeNode.ImportNodeSet(HomeDirectory, x => AssemblyTraceEvent.Tracer.TraceEvent(x.TraceLevel, 486245093, x.ToString()), OPCFModelConfigurationManagement.ReadModelDesign);
            }
            else
            {
                _node = ProjectTreeNode.CreateNewModel(HomeDirectory);
            }
            Add(_node);
        }
Пример #3
0
        public void AddProject(bool existing)
        {
            ProjectTreeNode _node = null;

            if (existing)
            {
                string _DefaultFileName = Path.Combine(HomeDirectory, Resources.DefaultProjectName);
                _node = ProjectTreeNode.ImportNodeSet(this, x => AssemblyTraceEvent.Tracer.TraceEvent(x.TraceLevel, 186, x.ToString()), OPCFModelConfigurationManagement.ReadModelDesign);
            }
            else
            {
                _node = ProjectTreeNode.CreateNewModel(this);
            }
            Add(_node);
        }