public StrokeDetailViewModel(Stroke s, IMatchManager man, Rally cr) { Events = IoC.Get <IEventAggregator>(); MatchManager = man; Stroke = s; TableControl = new StrokePositionTableViewModel(s, man); CurrentRally = cr; SetCourse(); if (Stroke.Stroketechnique == null) { Stroke.Stroketechnique = new Stroketechnique(); Stroke.Stroketechnique.Type = ""; Stroke.Stroketechnique.Option = ""; Events.PublishOnUIThread(new RalliesStrokesAddedEvent()); } }
public SchlagDetailViewModel(Schlag s) { _stroke = s; TableControl = new StrokePositionTableViewModel(s); }