Exemplo n.º 1
0
        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(D900CdrDefinitionProvider.Instance.AvailableSchemas());
            defSchemaComboBox.SelectedItem = D900CdrDefinitionProvider.Instance.CurrentSchema;

            ShowSchemaElements();
        }
Exemplo n.º 3
0
 public RecordFormatter(RecordFormatterSettings settings)
 {
     _settings = settings;
 }
Exemplo n.º 4
0
 public RecordFormatter(RecordFormatterSettings settings)
 {
     _settings = settings;
 }
Exemplo n.º 5
0
 public RecordFormatterSettings Clone()
 {
     RecordFormatterSettings clone = new RecordFormatterSettings(this.Format);
     clone.PrintColumnsHeader = this.PrintColumnsHeader;
     clone._columns.AddRange(this._columns);
     return clone;
 }