private void btnEventmanagement_Click(object sender, RoutedEventArgs e)
        {
            EventTournamentManagement et = new EventTournamentManagement();

            et.Activate();
            this.Close();
            et.Show();
        }
Esempio n. 2
0
        private void btnTDelete_Click(object sender, RoutedEventArgs e)
        {
            tournamentConnection.deleteTournament(_tournamentId);
            MessageBox.Show("Succesfully deleted!");
            EventTournamentManagement etm = new EventTournamentManagement();

            etm.Activate();
            etm.Show();
            this.Close();
        }
Esempio n. 3
0
        private void btnESaveNew_Click(object sender, RoutedEventArgs e)
        {
            eventConnection.InsertNewEvent(_eventName, _eventDate, _eventAddress, _eventAddressNum, _eventTK, _eventLocation, _eventPhone, _eventEmail, _eventCity, _eventCountryCode, _eventOfficial);
            MessageBox.Show("Succesfully saved!");
            EventTournamentManagement etm = new EventTournamentManagement();

            etm.Activate();
            etm.Show();
            this.Close();
        }
        private void mainCalendar_SelectedDatesChanged(object sender, SelectionChangedEventArgs e)
        {
            DateTime selectedDate = mainCalendar.SelectedDate.Value;

            EventTournamentManagement et = new EventTournamentManagement(selectedDate);

            et.Activate();
            this.Close();
            et.Show();
        }
Esempio n. 5
0
 private void btnTSave_Click(object sender, RoutedEventArgs e)
 {
     if (cmbTEventChooser.SelectedIndex == 0)
     {
         MessageBox.Show("Please select one event!");
     }
     else
     {
         tournamentConnection.UpdateTournament(_tournamentId, _tournamentName, _tournamentSex, _tournamentAgeFrom, _tournamentAgeTo, _tournamentLevelFrom, _tournamentLevelTo, _tounamentGameType, _tournamentGame, _tournamentEventId);
         MessageBox.Show("Succesfully saved!");
         EventTournamentManagement etm = new EventTournamentManagement();
         etm.Activate();
         etm.Show();
         this.Close();
     }
 }