public LastBallViewModel(IEventAggregator eventAggregator, IMatchManager man) { this.events = eventAggregator; Manager = man; Hand = Models.Util.Enums.Stroke.Hand.None; SelectedStrokeLengths = new HashSet <Positions.Length>(); SelectedTablePositions = new HashSet <Positions.Table>(); Quality = Models.Util.Enums.Stroke.Quality.None; SelectedAggressiveness = new HashSet <Models.Util.Enums.Stroke.Aggressiveness>(); SelectedStrokeTec = new HashSet <Models.Util.Enums.Stroke.Technique>(); SelectedSpecials = new HashSet <Models.Util.Enums.Stroke.Specials>(); StepAround = Models.Util.Enums.Stroke.StepAround.Not; OpeningShot = Models.Util.Enums.Stroke.OpeningShot.Not; Winner = Models.Util.Enums.Stroke.WinnerOrNetOut.None; BasicFilterView = new BasicFilterViewModel(this.events, Manager) { MinRallyLength = 1, PlayerLabel = "Service:", LastStroke = true, StrokeNumber = 0 }; TableView = new TableStandardViewModel(this.events, "Last"); TableView.lastStrokeOrOpeningShot = 1; }
public CombiViewModel(IEventAggregator eventAggregator, IMatchManager man) { this.events = eventAggregator; this.Manager = man; BasicFilterView = new BasicFilterViewModel(this.events, Manager) { MinRallyLength = 0, PlayerLabel = "Aufschlag:" }; TableKombi = new TableKombiViewModel(this.events) { ButtonsVisible = true, TopButtonPositions = new List <int>() { 1, 2, 3 }, BottomButtonPositions = new List <int>() { 7, 8, 9 }, }; }
public FourthBallViewModel(IEventAggregator eventAggregator, IMatchManager man) { this.events = eventAggregator; Manager = man; Hand = Models.Util.Enums.Stroke.Hand.None; SelectedStrokeLengths = new HashSet <Positions.Length>(); SelectedTablePositions = new HashSet <Positions.Table>(); Quality = Models.Util.Enums.Stroke.Quality.None; SelectedAggressiveness = new HashSet <Models.Util.Enums.Stroke.Aggressiveness>(); SelectedSpecials = new HashSet <Models.Util.Enums.Stroke.Specials>(); SelectedStrokeTec = new HashSet <Models.Util.Enums.Stroke.Technique>(); StepAround = Models.Util.Enums.Stroke.StepAround.Not; OpeningShot = Models.Util.Enums.Stroke.OpeningShot.Not; BasicFilterView = new BasicFilterViewModel(this.events, Manager) { MinRallyLength = 3, PlayerLabel = "4th Stroke:", StrokeNumber = 3 }; TableView = new TableStandardViewModel(this.events, "Fourth"); TableView.StrokeNumber = 3; TableView.lastStrokeOrOpeningShot = 0; }
public ServiceViewModel(IEventAggregator eventAggregator, IMatchManager man) { this.events = eventAggregator; Manager = man; BasicFilterView = new BasicFilterViewModel(this.events, Manager) { MinRallyLength = 0, PlayerLabel = "Service:", LastStroke = false, StrokeNumber = 0 }; TableView = new TableServiceViewModel(events); SelectedSpins = new List <Models.Util.Enums.Stroke.Spin>(); Hand = Models.Util.Enums.Stroke.Hand.None; Quality = Models.Util.Enums.Stroke.Quality.None; SelectedSpecials = new HashSet <Models.Util.Enums.Stroke.Specials>(); SelectedServices = new HashSet <Models.Util.Enums.Stroke.Services>(); SelectedServerPositions = new HashSet <Positions.Server>(); SelectedTablePositions = new HashSet <Positions.Table>(); SpinControl = new SpinControlViewModel(events); }