コード例 #1
0
ファイル: GridColumn.cs プロジェクト: vitalyobukhov/SmsToMail
        protected GridColumn(GridColumnCollection columnCollection, string name)
        {
            var logger = ObjectFactory.GetInstance<Logger>();

            if (columnCollection == null)
            {
                logger.Error("[ViewModels].[Management].[GridColumn()] throwing exception ([columnCollection] == null).");
                throw new ArgumentNullException("columnCollection");
            }

            if (string.IsNullOrEmpty(name))
            {
                logger.Error("[ViewModels].[Management].[GridColumn()] throwing exception ([name] == null).");
                throw new ArgumentNullException("name");
            }

            ColumnCollection = columnCollection;
            Name = name;
            Title = titleDefault;
        }
コード例 #2
0
 public GridListColumn(GridColumnCollection columnCollection, string name)
     : base(columnCollection, name)
 {
     DefaultCellValue = defaultCellValueDefault;
     CellItems = cellItemsDefault.ToList();
 }