Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 5
0
 public DustMessageFilter(DustCompData source, Enum msgId = null, DustCompData target = null)
 {
     this.source = source;
     this.msgId = msgId;
     this.target = target;
 }