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