Exemplo n.º 1
0
        private void ReadProjectWorkflows(string directory)
        {
            var dirInfo = new DirectoryInfo(directory);
            var files   = dirInfo.GetFiles("*.xaml", SearchOption.AllDirectories);

            foreach (var file in files)
            {
                string fullName = file.FullName;
                var    wf       = new Workflow(this, fullName);
                Workflows.Add(PathHelper.MakeRelativePath(fullName, Folder).ToLower(), wf);

                if (MainFile.Equals(fullName, StringComparison.InvariantCultureIgnoreCase))
                {
                    InitialWorkflow = wf;
                }
            }
        }