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

            objectDataSource.Filter = FilterControl.Filter;
        }
Example #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();
        }
Example #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();
        }
        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();
        }
Example #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();
        }
 public DataSourceAssert(IDataSourceBase <BaseClientService> dataSource)
 {
     _service = dataSource.Service;
 }
 public static DataSourceAssert DataSource(this Assert that, IDataSourceBase <BaseClientService> dataSource) =>
 new DataSourceAssert(dataSource);