public Item MakeMissingElement <T>(Func <RectangleF> area, T item, ProjectExplorer.ContainerItem parent, Func <Matrix> toControlTransform) where T : ISaveableFileProvider
            {
                var definition = ProjectElementDefinition.Get <T>();
                var result     = definition.MakeMissingElement(area, item, Project, parent, toControlTransform, Rename);

                InsertProjectChildAlphabetically(parent, result);
                return(result);
            }
Пример #2
0
        public override ProjectExplorer.Item MakeElement(Func <RectangleF> area, IConversationFile item, IProject project, ProjectExplorer.ContainerItem parent, Func <Matrix> toControlTransform, Func <ProjectExplorer.FileSystemObject, string, bool> rename)
        {
            var result = new ProjectExplorer.ConversationItem(area, item, project, parent, Icon, MissingIcon, toControlTransform, rename);

            return(result);
        }
Пример #3
0
        public override ProjectExplorer.Item MakeElement(Func <RectangleF> area, IAudioFile item, IProject project, ProjectExplorer.ContainerItem parent, Func <Matrix> toControlTransform, Func <ProjectExplorer.FileSystemObject, string, bool> rename)
        {
            var result = new ProjectExplorer.RealLeafItem <IAudioFile, IAudioFile>(area, item, Icon, project, parent, f => f.Audio.Value, toControlTransform, rename);

            return(result);
        }
Пример #4
0
        public override ProjectExplorer.Item MakeMissingElement(Func <RectangleF> area, IDomainFile item, IProject project, ProjectExplorer.ContainerItem parent, Func <Matrix> toControlTransform, Func <ProjectExplorer.FileSystemObject, string, bool> rename)
        {
            var result = new ProjectExplorer.MissingLeafItem <IDomainFile>(area, item, project, MissingIcon, parent, f => f.Domains.Value, toControlTransform, rename);

            return(result);
        }