Ejemplo n.º 1
0
 public TableSchema()
 {
     this.DatabaseOwner = string.Empty;
     this.Name = string.Empty;
     this.Columns = new ColumnList();
     this.Indexes = new IndexList();
     this.ForeignKeys = new ForeignKeyList();
 }
Ejemplo n.º 2
0
 public TableSchema(string databaseOwner, string schemaName, ColumnList columns)
 {
     this.DatabaseOwner = databaseOwner ?? @"";
     this.Name = schemaName ?? @"";
     this.Columns = new ColumnList();
     if (columns != null) this.Columns.InsertRange(0, columns);
     this.Indexes = new IndexList();
     this.ForeignKeys = new ForeignKeyList();
 }
Ejemplo n.º 3
0
 public TableSchema(string schemaName, ColumnList columns, IndexList indexes, ForeignKeyList foreignKeys)
 {
     this.DatabaseOwner = string.Empty;
     this.Name = schemaName ?? @"";
     this.Columns = new ColumnList();
     if (columns != null) this.Columns.InsertRange(0, columns);
     this.Indexes = new IndexList();
     if (indexes != null) this.Indexes.InsertRange(0, indexes);
     this.ForeignKeys = new ForeignKeyList();
     this.ForeignKeys.InsertRange(0, foreignKeys);
 }
Ejemplo n.º 4
0
			public RamWatchSettings()
			{
				Columns = new ColumnList
				{
					new Column { Name = WatchList.ADDRESS, Visible = true, Index = 0, Width = 60 },
					new Column { Name = WatchList.VALUE, Visible = true, Index = 1, Width = 59 },
					new Column { Name = WatchList.PREV, Visible = false, Index = 2, Width = 59 },
					new Column { Name = WatchList.CHANGES, Visible = true, Index = 3, Width = 55 },
					new Column { Name = WatchList.DIFF, Visible = false, Index = 4, Width = 59 },
					new Column { Name = WatchList.DOMAIN, Visible = true, Index = 5, Width = 55 },
					new Column { Name = WatchList.NOTES, Visible = true, Index = 6, Width = 128 },
				};
			}
        /// <summary>
        /// Initializes a new instance of the <see cref="PostgreSqlMessageQueueTransportOptions" /> class.
        /// </summary>
        public PostgreSqlMessageQueueTransportOptions()
        {
            EnableDelayedProcessing = false;
            EnableHeartBeat = true;
            EnableHoldTransactionUntilMessageCommited = false;
            EnablePriority = false;
            EnableStatus = true;
            EnableMessageExpiration = false;
            QueueType = QueueTypes.Normal;
            EnableStatusTable = false;
            EnableRoute = false;

            AdditionalColumns = new ColumnList();
            AdditionalConstraints = new ConstraintList();
        }
Ejemplo n.º 6
0
 public GroupIdentifier( int start, object[] listItems, ColumnList columns, int groupIndex, object item )
 {
     EventingList<Column> groupColumns = columns.GroupedItems;
     _listItems = listItems;
     _groupValues = new object[groupIndex + 1];
     _groupColumns = new Column[groupIndex + 1];
     _hashCode = 0;
     for( int i = 0; i <= groupIndex; i++ )
     {
         string s = groupColumns[i].GroupItemAccessor( item ).ToString();
         _groupValues[i] = s;
         _groupColumns[i] = groupColumns[i];
         _hashCode += s.GetHashCode();
     }
     Start = start;
     End = start;
 }
Ejemplo n.º 7
0
            public RamSearchSettings()
            {
                Columns = new ColumnList
                {
                    new Column { Name = WatchList.ADDRESS, Visible = true, Index = 0, Width = 60 },
                    new Column { Name = WatchList.VALUE, Visible = true, Index = 1, Width = 59 },
                    new Column { Name = WatchList.PREV, Visible = true, Index = 2, Width = 59 },
                    new Column { Name = WatchList.CHANGES, Visible = true, Index = 3, Width = 55 },
                    new Column { Name = WatchList.DIFF, Visible = false, Index = 4, Width = 59 },
                };

                PreviewMode = true;
                RecentSearches = new RecentFiles(8);
                AutoSearchTakeLagFramesIntoAccount = true;
            }
Ejemplo n.º 8
0
 public void AddColumn(Column column)
 {
     if (Columns == null) Columns = new ColumnList();
     Columns.Add(column);
 }
Ejemplo n.º 9
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);

            if (_columnList != null)
            {
                _columnList.DataChanged -= columnList_DataChanged;
                _columnList = null;
            }
        }
Ejemplo n.º 10
0
 public Table(string name)
 {
     this.name = name;
     Columns = new ColumnList();
 }
Ejemplo n.º 11
0
 public bool IsEditable()
 {
     return(HasForm && ColumnList.OfType <IGridEditColumn <T> >().Any());
 }
Ejemplo n.º 12
0
        private void ContextList_ContextsChanged(object sender, EventArgs e)
        {
            ColumnList.SetExistingContexts(ContextList.Contexts.Select(c => c.UserId));

            RaisePropertyChanged(nameof(HasContexts));
        }
Ejemplo n.º 13
0
 public static ColumnList <StructT, DataT> MakeColumn <StructT, DataT>(List <StructT> list, ColumnList <StructT, DataT> .Getter getter) where DataT : IComparable, new()
 {
     return(new ColumnList <StructT, DataT>(list, getter, (List <StructT> l, int index, DataT v) => { throw new Exception("Cannot set value on this column"); }));
 }
Ejemplo n.º 14
0
 public static ColumnList <StructT, DataT> MakeColumn <StructT, DataT>(List <StructT> list, ColumnList <StructT, DataT> .Getter getter, ColumnList <StructT, DataT> .Setter setter) where DataT : IComparable, new()
 {
     return(new ColumnList <StructT, DataT>(list, getter, setter));
 }
Ejemplo n.º 15
0
        public async Task Create() // todo:validate first wizard page again when creating?
        {
            var uri = FolderName + "\\" + FileName;

            if (!InExistedFile)
            {
                scope = appModel.CreateScope(uri);
            }

            else
            {
                var boards = await scope.GetAllBoardsInFileAsync();

                BoardsInFile.PublishCollection(boards.Select(board => board.Name));

                if (BoardsInFile.Contains(BoardName))
                {
                    await dialogCoordinator.ShowMessageAsync(this, "Can not create board",
                                                             "Board with such name already exists in file");

                    return;
                }
            }

            appModel.AddRecent(uri);

            appModel.SaveConfig();

            var newBoard = new BoardInfo()
            {
                Name     = BoardName,
                Created  = DateTime.Now,
                Modified = DateTime.Now
            };

            newBoard = await scope.CreateOrUpdateBoardAsync(newBoard);

            foreach (var colName in ColumnList.Select(column => column.Name))
            {
                await scope.CreateOrUpdateColumnAsync(new ColumnInfo
                {
                    Name  = colName,
                    Board = newBoard
                });
            }

            foreach (var rowName in RowList.Select(row => row.Name))
            {
                await scope.CreateOrUpdateRowAsync(new RowInfo
                {
                    Name  = rowName,
                    Board = newBoard
                });
            }

            Close();

            shell.ShowDistinctView <BoardView>(uri,
                                               viewRequest: new BoardViewRequest {
                Scope = scope, SelectedBoardName = BoardName
            },
                                               options: new UiShowOptions {
                Title = uri
            });
        }
Ejemplo n.º 16
0
 public Table()
 {
     Columns = new ColumnList();
 }
Ejemplo n.º 17
0
			public CheatsSettings()
			{
				Columns = new ColumnList
				{
					new Column { Name = NAME, Visible = true, Index = 0, Width = 128 },
					new Column { Name = ADDRESS, Visible = true, Index = 1, Width = 60 },
					new Column { Name = VALUE, Visible = true, Index = 2, Width = 59 },
					new Column { Name = COMPARE, Visible = true, Index = 3, Width = 59 },
					new Column { Name = ON, Visible = false, Index = 4, Width = 28 },
					new Column { Name = DOMAIN, Visible = true, Index = 5, Width = 55 },
					new Column { Name = SIZE, Visible = true, Index = 6, Width = 55 },
					new Column { Name = ENDIAN, Visible = false, Index = 7, Width = 55 },
					new Column { Name = TYPE, Visible = false, Index = 8, Width = 55 }
				};
			}
Ejemplo n.º 18
0
 /// <summary>
 /// Get the ID column
 /// </summary>
 /// <typeparam name="TTable">Table type</typeparam>
 /// <param name="columns">List of mapped columns</param>
 public static Maybe <Column> GetIdColumn <TTable>(ColumnList columns)
     where TTable : ITable =>
 F.Some(
     columns
     )
 .Map(