示例#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;
 }
示例#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");
        }
示例#3
0
 public IntroMode(DeskPiMode next, Func <ITicker> getTicker) : base(next)
 {
     this.next   = next;
     this.ticker = getTicker().SomeNotNull();
 }
示例#4
0
 protected DeskPiMode(DeskPiMode source)
 {
     this.buildSelector = source.buildSelector;
 }