internal ReadOnlyCheckItemCollection(CheckListContext context, TrelloAuthorization auth) : base(() => context.Data.Id, auth) { _context = context; EventAggregator.Subscribe(this); }
public CheckListService(CheckListContext CheckListContext, CheckListGoodsContext CheckListGoodsContext, StoreContext storeContext) { _CheckListContext = CheckListContext; _CheckListGoodsContext = CheckListGoodsContext; _storeContext = storeContext; }
/// <summary> /// Creates a new instance of the <see cref="CheckList"/> object. /// </summary> /// <param name="id">The check list's ID.</param> /// <param name="auth">(Optional) Custom authorization parameters. When not provided, <see cref="TrelloAuthorization.Default"/> will be used.</param> public CheckList(string id, TrelloAuthorization auth = null) { Id = id; _context = new CheckListContext(id, auth); _context.Synchronized += Synchronized; _board = new Field <Board>(_context, nameof(Board)); _card = new Field <Card>(_context, nameof(Card)); _card.AddRule(NotNullRule <Card> .Instance); _name = new Field <string>(_context, nameof(Name)); _name.AddRule(NotNullOrWhiteSpaceRule.Instance); _position = new Field <Position>(_context, nameof(Position)); _position.AddRule(NotNullRule <Position> .Instance); _position.AddRule(PositionRule.Instance); TrelloConfiguration.Cache.Add(this); }
internal CheckItemCollection(CheckListContext context, TrelloAuthorization auth) : base(context, auth) { }
internal ReadOnlyCheckItemCollection(CheckListContext context, TrelloAuthorization auth) : base(() => context.Data.Id, auth) { _context = context; }
public MainViewModel(CheckListContext context) { this.context = context; InitSource(); }