Example #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;
 }
Example #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");
        }