public RecordFormatterSettings Clone() { RecordFormatterSettings clone = new RecordFormatterSettings(this.Format); clone.PrintColumnsHeader = this.PrintColumnsHeader; clone._columns.AddRange(this._columns); return(clone); }
public FormatterSettingsForm(RecordFormatterSettings settings) { InitializeComponent(); _sorter = new ElementsListViewSorter(); elementsListView.ListViewItemSorter = _sorter; _settings = (settings == null) ? new RecordFormatterSettings() : settings.Clone(); columnsListView.VirtualListSize = _settings.ColumnCount; defSchemaComboBox.Items.AddRange(CdrDefinitionProvider.Instance.AvailableSchemas()); defSchemaComboBox.SelectedItem = CdrDefinitionProvider.Instance.CurrentSchema; ShowSchemaElements(); }
public RecordFormatter(RecordFormatterSettings settings) { _settings = settings; }
public RecordFormatterSettings Clone() { RecordFormatterSettings clone = new RecordFormatterSettings(this.Format); clone.PrintColumnsHeader = this.PrintColumnsHeader; clone._columns.AddRange(this._columns); return clone; }