示例#1
0
        public virtual void PrepareDataSourceObject(IDataSourceBase objectDataSource)
        {
            if (FilterControl == null)
                return;

            objectDataSource.Filter = FilterControl.Filter;
        }
示例#2
0
        public override void SetDataSource(IDataSourceBase dataSource)
        {
            IStaticLabelDataSource dS = dataSource as IStaticLabelDataSource;
            if (dS == null)
                return;

            _text = dS.getCaption();
            _color = dS.getColor();
            _background = dS.getBackground();
            _alignment = dS.getAlignment();
            _font = dS.getFont();
        }
示例#3
0
        public override void SetDataSource(IDataSourceBase dataSource)
        {
            IListDataSource dS = dataSource as IListDataSource;
            if (dS == null)
                return;

            _XPathExpression = dS.getXPathExpression();
            _documentName = dS.getDocumentName();
            _listDocumentName = dS.getListDocumentName();
            _listXPathExpression = dS.getListXPathExpression();
            _valueXPathExpression = dS.getListValueXPathExpression();
            _captionXPathExpression = dS.getListCaptionXPathExpression();
        }
        public override void SetDataSource(IDataSourceBase dataSource)
        {
            ISchemaControlDataSource dS = dataSource as ISchemaControlDataSource;
            if (dS == null)
                return;

            _documentName = dS.getDocumentName();
            _XPathExpression = dS.getXPathExpression();
            _schemaName = dS.getSchemaName();
        }
示例#5
0
        private void ApplyDataSource( IDataSourceBase dataSource)
        {
            foreach (XMLControl ctr in _documentLayout.SelectedControls() )
            {
                ctr.SetDataSource(dataSource);
            }

            foreach (XMLControl ctr in _documentLayout.SelectedControls(ViewRectangle))
            {

                System.Diagnostics.Trace.WriteLine("ApplyDataSource 4");
                ctr.UpdateEditorControl(XMLControl2ControlDictionary[ctr]);
                _editorOverlay.Invalidate(XMLControl2ControlDictionary[ctr].ClientRectangle);
            }

            storeNeeded = true;
            RefreshOverlay();
        }
示例#6
0
 public abstract void SetDataSource(IDataSourceBase dataSource);
        public override void SetDataSource(IDataSourceBase dataSource)
        {
            SingleDataSourcePropertyControl dS = dataSource as SingleDataSourcePropertyControl;
            if (dS == null)
                return;

            _XPathExpression = dS.getXPathExpression();
            _documentName = dS.getDocumentName();
        }