public DustComponentBase createComponentForData(DustCompData data)
        {
            if (data is IGuiTable)
            {
                return new GuiTable();
            }
            else if (data is IGuiText)
            {
                return new GuiText();
            }
            else if (data is IGuiClock)
            {
                return new GuiClock();
            }
            else if (data is IGuiXaml)
            {
                return new GuiXaml();
            }
            else if (data is IGuiFlip)
            {
                return new GuiFlip();
            }

            return null;
        }
        public DustComponentBase createComponentForData(DustCompData data)
        {
            if (data is IToolsList)
            {
                return new ToolsList();
            }
            else if (data is IToolsListSelector)
            {
                return new ToolsListSelector();
            }
            else if (data is IToolsActionMessage)
            {
                return new ToolsActionMessage();
            }
            else if (data is IToolsActionList)
            {
                return new ToolsActionList();
            }
            else if (data is IToolsScheduler)
            {
                return new ToolsScheduler();
            }
            else if (data is IToolsSchedulerTask)
            {
                return new ToolsSchedulerTask();
            }

            return null;
        }
        public DustComponentBase createComponentForData(DustCompData data)
        {
            if (data is IMediaGuiHtml)
            {
                return new MediaGuiHtml();
            }
            else if (data is IMediaGuiImage)
            {
                return new MediaGuiImage();
            }
            else if (data is IMediaGuiVideo)
            {
                return new MediaGuiVideo();
            }
            else if (data is IMediaGuiContainer)
            {
                return new MediaGuiContainer();
            }
            else if (data is IMediaItemRefSelectionAction)
            {
                return new MediaItemRefSelectionAction();
            }

            return null;
        }
Beispiel #4
0
 public bool accept(DustMessage msg, DustCompData source, DustCompData target)
 {
     return ((null == msgId) || (msgId.Equals(msg.getMessageId())))
         && ((null == this.source) || (this.source == source))
         && ((null == this.target) || (this.target == target));
 }
Beispiel #5
0
 public DustMessageFilter(DustCompData source, Enum msgId = null, DustCompData target = null)
 {
     this.source = source;
     this.msgId = msgId;
     this.target = target;
 }