Ejemplo n.º 1
0
        private void OpenTeams(object obj)
        {
            TeamsWindow TeamsWindow = new TeamsWindow();

            TeamsWindow.Show();

            mediator.Send(new ActiveUserMessage {
                Id = User.Id
            });
        }
        public void SelectCommence(object parameter)
        {
            teamOne.InitializeStats();
            teamTwo.InitializeStats();
            string time = DateTime.Now.ToString("h:mm:ss tt");
            string date = DateTime.Now.ToString("M/dd/y");

            match = new Match(teamOne, teamTwo, date, time, teamOne.SportPlayed);
            TeamsWindow tw = new TeamsWindow(this.mediator, this, repository);

            mediator.OpenView(tw);
            mediator.CloseCurrentView();
            mediator.currentWindow = tw;
        }
Ejemplo n.º 3
0
        private void TeamsButton_Click(object sender, RoutedEventArgs e)
        {
            TeamsWindow window = new TeamsWindow(new TeamsViewModel());

            window.Show();
        }