コード例 #1
0
        private void btnPersonManagement_Click(object sender, RoutedEventArgs e)
        {
            PersonManagement pm = new PersonManagement();

            pm.Activate();

            this.Close();
            pm.Show();
        }
        private void btnAthleteDelete_Click(object sender, RoutedEventArgs e)
        {
            athleteConnection.deleteAthlete(_personId);
            MessageBox.Show("Succesfully deleted!");
            PersonManagement pm = new PersonManagement();

            pm.Activate();
            pm.Show();
            this.Close();
        }
        private void btnASaveNew_Click(object sender, RoutedEventArgs e)
        {
            athleteConnection.InsertNewAthlete(_athleteFirstName, _athleteLastName, _athleteFathersName, _athleteSex, _athleteDateOfBirth, _athleteFirstPhone, _athleteSecondPhone, _athleteEmail, _athleteAddress, _athleteAddressNum, _athleteTK, _athleteCountryCode, _athleteCity, _athleteRank, _athleteClubId);
            MessageBox.Show("Succesfully saved!");
            PersonManagement pm = new PersonManagement();

            pm.Activate();
            pm.Show();
            this.Close();
        }
        private void btnJDelete_Click(object sender, RoutedEventArgs e)
        {
            judgeConnection = new JudgeConnection();
            judgeConnection.deleteJudge(_personId);
            MessageBox.Show("Succesfully deleted!");
            PersonManagement pm = new PersonManagement();

            pm.Activate();
            pm.Show();
            this.Hide();
        }
        private void btnJSaveNew_Click(object sender, RoutedEventArgs e)
        {
            judgeConnection = new JudgeConnection();


            judgeConnection.InsertNewJudge(_judgeFirstName, _judgeLastName, _judgeFathersName, _judgeSex, _judgeDateOfBirth, _judgeFirstPhone, _judgeSecondPhone, _judgeEmail, _judgeAddress, _judgeAddressNum, _judgeTK, _judgeCountryCode, _judgeCity, _judgeRank, _judgeClass);
            MessageBox.Show("Succesfully saved!");
            PersonManagement pm = new PersonManagement();

            pm.Activate();
            pm.Show();
            this.Hide();
        }