コード例 #1
0
 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());
     }
 }
コード例 #2
0
 public SchlagDetailViewModel(Schlag s)
 {
     _stroke      = s;
     TableControl = new StrokePositionTableViewModel(s);
 }