コード例 #1
0
        protected SectionContentViewData ComplexBtn(object model, bool isTask = false, bool isImage = false)
        {
            var centrPath = Reports.ReportCenterTaskTmpl;

            if (isTask)
            {
                centrPath = TabTaskOut.TaskCenterPartialPath;
            }

            var views = new SectionContentViewData
            {
                Left = new SectionItem
                {
                    Data = LeftImage
                },
                Centr = new SectionItem
                {
                    Data = model,
                    Path = centrPath
                },
                Right = new SectionItem
                {
                    Data = RightImage
                }
            };

            return(views);
        }
コード例 #2
0
        protected void SetComplexButtonView(SectionContentViewData data)
        {
            var cb = new ComplexButtonView();

            cb.Full(data);
            ComplexButtonView = cb;
        }
コード例 #3
0
        protected void _setComplexButtonView()
        {
            ComplexButtonView = new ComplexButtonView();
            var complexButtonSettings = new SectionContentViewData {
                Left = new SectionItem {
                    ItemId        = "avatar",
                    IsComplexPart = false,
                    Data          = ImageView.Img(ChannelIcon, CreatorName, true, CreatorName)
                },
                Centr = new SectionItem {
                    ItemId        = "messages",
                    IsComplexPart = true,
                    Data          = new {
                        Head = ChannelName
                    }
                },
                Right = new SectionItem {
                    ItemId        = "delete",
                    IsComplexPart = false
                }
            };

            ComplexButtonView.Full(complexButtonSettings);
        }