public TransformationsGridColumnCollection(TransformationsGrid grid) : base(grid) { TransformationsGrid = grid; PhoneNumber = new GridPlainTextColumn(this, "PhoneNumber") { MaxLength = Transformation.Lengths.PhoneNumber.ToDefaultString() }; Email = new GridPlainTextColumn(this, "Email") { MaxLength = Transformation.Lengths.Email.ToDefaultString() }; Items = new GridColumn[] { PhoneNumber, Email }; }
public UsersGridColumnCollection(UsersGrid grid) : base(grid) { UsersGrid = grid; Name = new GridPlainTextColumn(this, "Name") { MaxLength = User.Lengths.Name.ToDefaultString() }; Password = new GridPasswordTextColumn(this, "Password") { MaxLength = User.Lengths.Password.ToDefaultString() }; FullName = new GridPlainTextColumn(this, "FullName") { MaxLength = User.Lengths.FullName.ToDefaultString() }; UserRoleId = new GridListColumn(this, "UserRoleId") { DefaultCellValue = ((int)Session.UserRole.User).ToDefaultString()}; Items = new GridColumn[] { Name, Password, FullName, UserRoleId }; }
protected GridCell(GridRow row, GridColumn column) { var logger = ObjectFactory.GetInstance<Logger>(); if (row == null) { logger.Error("[ViewModels].[Management].[GridCell()] throwing exception ([row] == null)."); throw new ArgumentNullException("row"); } if (column == null) { logger.Error("[ViewModels].[Management].[GridCell()] throwing exception ([column] == null)."); throw new ArgumentNullException("column"); } Row = row; Column = column; }