コード例 #1
0
        internal ReadOnlyCheckItemCollection(CheckListContext context, TrelloAuthorization auth)
            : base(() => context.Data.Id, auth)
        {
            _context = context;

            EventAggregator.Subscribe(this);
        }
コード例 #2
0
ファイル: CheckListService.cs プロジェクト: test-see/csdd
 public CheckListService(CheckListContext CheckListContext,
                         CheckListGoodsContext CheckListGoodsContext,
                         StoreContext storeContext)
 {
     _CheckListContext      = CheckListContext;
     _CheckListGoodsContext = CheckListGoodsContext;
     _storeContext          = storeContext;
 }
コード例 #3
0
        /// <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);
        }
コード例 #4
0
 internal CheckItemCollection(CheckListContext context, TrelloAuthorization auth)
     : base(context, auth)
 {
 }
コード例 #5
0
 internal ReadOnlyCheckItemCollection(CheckListContext context, TrelloAuthorization auth)
     : base(() => context.Data.Id, auth)
 {
     _context = context;
 }
コード例 #6
0
ファイル: MainViewModel.cs プロジェクト: ohalay/Checklist
 public MainViewModel(CheckListContext context)
 {
     this.context = context;
     InitSource();
 }