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 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); }