Exemplo n.º 1
0
        public virtual void PrepareDataSourceObject(IDataSourceBase objectDataSource)
        {
            if (FilterControl == null)
                return;

            objectDataSource.Filter = FilterControl.Filter;
        }
Exemplo n.º 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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 4
0
        public override void SetDataSource(IDataSourceBase dataSource)
        {
            ISchemaControlDataSource dS = dataSource as ISchemaControlDataSource;
            if (dS == null)
                return;

            _documentName = dS.getDocumentName();
            _XPathExpression = dS.getXPathExpression();
            _schemaName = dS.getSchemaName();
        }
Exemplo n.º 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();
        }
Exemplo n.º 6
0
 public abstract void SetDataSource(IDataSourceBase dataSource);
Exemplo n.º 7
0
        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);