public ClockDisplay(String ts) { InitializeComponent(); clock = new ClockVM(ts); this.DataContext = clock; }
public ClockDisplay(ClockVM clock) { this.clock = new ClockVM(clock.getDateTime()); this.DataContext = clock; }