/// <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() }); }
/// <summary> /// Raises event 'MetaDataChanged' /// </summary> protected virtual void OnMetaDataChanged() { if (MetaDataChanged != null) { MetaDataChanged.Invoke(this, System.EventArgs.Empty); } }
/// <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()); }
internal void SetMetaDataForTable(MetaDataTable metaData) { if (_metaDataControl == null) { return; } _gridPresenter.SetMetaDataForTable(metaData); MetaDataChanged?.Invoke(this, new EventArgs()); _metaDataControl.RefreshData(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); }