示例#1
0
 /// <summary>
 /// Method raising OnCopyMetaDataOnTable event if the click on the copy button of the table meta data control.
 /// </summary>
 private void onCopyMetaDataTableControl(object sender, EventArgs e)
 {
     MetaDataChanged?.Invoke(this, new EventArgs());
     OnCopyMetaDataOnTable?.Invoke(this, new CopyMetaDataOnTableEventArgs {
         MetaData = _gridPresenter.GetMetaDataTable()
     });
 }
示例#2
0
 /// <summary>
 /// Raises event 'MetaDataChanged'
 /// </summary>
 protected virtual void OnMetaDataChanged()
 {
     if (MetaDataChanged != null)
     {
         MetaDataChanged.Invoke(this, System.EventArgs.Empty);
     }
 }
示例#3
0
        /// <summary>
        /// Method reacting on data validity changes of the meta data of the table.
        /// </summary>
        void metaDataControlOnIsDataValidChanged(object sender, EventArgs e)
        {
            var metaDataControl = sender as MetaDataEditControl;

            if (metaDataControl == null)
            {
                return;
            }
            metaDataControl.AcceptDataChanges();
            MetaDataChanged?.Invoke(this, new EventArgs());
        }
示例#4
0
        internal void SetMetaDataForTable(MetaDataTable metaData)
        {
            if (_metaDataControl == null)
            {
                return;
            }

            _gridPresenter.SetMetaDataForTable(metaData);
            MetaDataChanged?.Invoke(this, new EventArgs());

            _metaDataControl.RefreshData(0);
        }
示例#5
0
        private void onIsValidChangedColumnControlPanel(object sender, EventArgs e)
        {
            var control = sender as MetaDataEditControl;

            if (control == null)
            {
                return;
            }
            control.AcceptDataChanges();
            MetaDataChanged?.Invoke(this, new EventArgs());

            var column = control.Tag as ImportDataColumn;

            if (column == null)
            {
                return;
            }

            _gridPresenter.SetColumnImage(column.ColumnName);
        }