Example #1
0
 public LazyLot(
     IEnumerable <T> finiteSource,
     Lotter lotter)
 {
     this.finiteSource = finiteSource;
     this.lotter       = lotter;
 }
Example #2
0
 public ConcurrentDictionaryLot(
     ConcurrentDictionary <TKey, TValue> dictionary,
     Lotter lotter)
 {
     this.dictionary = dictionary;
     this.lotter     = lotter;
 }
Example #3
0
 public ConcurrentDictionaryLot(
     Lotter lotter)
     : this(
         new ConcurrentDictionary <TKey, TValue>(),
         lotter)
 {
 }
        public UserControlHomeNavUi(
            Lotter lotter)
        {
            this.InitializeComponent();

            var tk = this.timestampsKey;
            var sk = this.statisticsKey;
            var dk = this.dailyKey;
            var ek = this.exitKey;
            var ck = this.configKey;

            this.navKeys = lotter.Materialize(
                new[]
            {
                tk,
                sk,
                dk,
                ck,
                ek
            });
            tk.Text = NavKeyLabels.Timestamps;
            sk.Text = NavKeyLabels.Statistics;
            dk.Text = NavKeyLabels.Daily;
            ck.Text = NavKeyLabels.Config;
            ek.Text = NavKeyLabels.Exit;
        }
        public UserControlDailyUi(
            Lotter lotter)
        {
            this.lotter = lotter;

            this.InitializeComponent();
        }
Example #6
0
        public UserControlTimestampsUi(
            Lotter lotter)
        {
            this.lotter = lotter;

            this.InitializeComponent();
        }
Example #7
0
 public LotIOBitter(
     Lotter lotter,
     IOBitter bitter)
 {
     this.lotter = lotter;
     this.bitter = bitter;
 }
Example #8
0
 public ConcurrentDictionaryLot(
     IEnumerable <KeyValuePair <TKey, TValue> > source,
     Lotter lotter)
     : this(
         new ConcurrentDictionary <TKey, TValue>(source),
         lotter)
 {
 }
Example #9
0
 public UnifiedBitPool(
     Lot <bool> initialPool,
     Lotter lotter)
 {
     Debug.Assert(
         initialPool != default(Lot <bool>));
     this.currentPool = initialPool;
     this.lotter      = lotter;
     this.noOfOnBits  = Count(
         initialPool,
         b => b);
 }
Example #10
0
        public UnifiedBitPool(
            int noOfOnBits,
            Lotter lotter)
        {
            this.noOfOnBits = noOfOnBits;
            this.lotter     = lotter;
            var max   = noOfOnBits * 2;
            var array = new bool[max];

            for (long i = 0; i < max - 1; i += 2)
            {
                array[i]     = true;
                array[i + 1] = false;
            }

            this.currentPool = lotter.Materialize(array);
        }
Example #11
0
 public CollectionHolder(
     Lotter lotter)
 {
     this.lotter      = lotter ?? new LinkedListLotter();
     this.collections = new List <Tuple <string, object> >(0x100);
 }