public override void SetItem(OverlayItemModelBase item) { if (item != null) { this.viewModel = new OverlayTimerTrainItemViewModel((OverlayTimerTrainItemModel)item); } }
public OverlayTimerTrainItemControl(OverlayTimerTrainItemModel item) { InitializeComponent(); this.viewModel = new OverlayTimerTrainItemViewModel(item); }
public OverlayTimerTrainItemControl(OverlayTimerTrainItemViewModel viewModel) : this() { this.ViewModel = viewModel; }