Beispiel #1
0
 private DeskPi(DeskPi source,
                ISsd stringWriter = null,
                IButtonAggregator buttonAggregator = null,
                DeskPiMode currentMode             = null)
 {
     this.stringWriter     = stringWriter ?? source.stringWriter;
     this.buttonAggregator = buttonAggregator ?? source.buttonAggregator;
     this.currentMode      = currentMode ?? source.currentMode;
 }
Beispiel #2
0
        public DeskPi(ISsd stringWriter,
                      IButtonAggregator buttonAggregator, DeskPiMode currentMode)
        {
            this.stringWriter     = stringWriter;
            this.buttonAggregator = buttonAggregator;
            this.currentMode      = currentMode;

            this.stringWriter = Write(this.stringWriter, currentMode.Text);

            Console.WriteLine("Start");
        }
Beispiel #3
0
 public IntroMode(DeskPiMode next, Func <ITicker> getTicker) : base(next)
 {
     this.next   = next;
     this.ticker = getTicker().SomeNotNull();
 }
Beispiel #4
0
 protected DeskPiMode(DeskPiMode source)
 {
     this.buildSelector = source.buildSelector;
 }