Beispiel #1
0
 public MainViewModel(IEventAggregator ev, IMatchManager man, IDialogCoordinator cor)
 {
     Events              = ev;
     Manager             = man;
     Dialogs             = cor;
     Manager.ActiveRally = new Rally(Manager.Match);
     LiveView            = new LiveViewModel(Events, Manager, Dialogs);
     RemoteView          = new RemoteViewModel(Events, Manager, Dialogs);
 }
        public RemoteStrokeViewModel(RemoteViewModel remoteViewModel, IMatchManager man, Rally r, Calibration cal)
        {
            this.remoteViewModel = remoteViewModel;
            Events       = IoC.Get <IEventAggregator>();
            MatchManager = man;
            CurrentRally = r;

            Strokes = r.Strokes;
            cal.StrokePositionCalculated += OnStrokePositionCalculated;
        }
        public RemotePositionsRallyViewModel(RemoteViewModel remoteViewModel, Calibration cal)
        {
            this.remoteViewModel = remoteViewModel;

            this.cal = cal;
            cal.StrokePositionCalculated += OnStrokePositionCalculated;
            cal.PointAdded += OnPointAdded;


            ToogleCalibrationButtonImage = "/resources/visible.png";
            DrawnStrokes = new ObservableCollection <DrawElement>();

            showBottomLeftArrow  = false;
            showBottomRightArrow = false;
            showTopLeftArrow     = false;
            showTopRightArrow    = false;

            maxVisibleStrokes = "ALL";
        }