Esempio n. 1
0
        private void btnAssignClubSwimmer_Click(object sender, EventArgs e)
        {
            Swimmer swimmer = (Swimmer)lsbSwimmers.SelectedItem;

            if (swimmer != null)
            {
                AssignClubForm frmAssignClub = new AssignClubForm(swimmer);
                DialogResult   dr            = frmAssignClub.ShowDialog(this);

                if (dr == DialogResult.OK)
                {
                    lblSwimmerInfo.Text = swimmer.ToString();
                }
            }
            else
            {
                lblSwimmerInfo.Text = "No swimmer selected.";
            }
        }
Esempio n. 2
0
        private void btnAssignClub_Click(object sender, EventArgs e)
        {
            Coach coach = (Coach)lsbCoaches.SelectedItem;

            if (coach != null)
            {
                AssignClubForm frmAssignClub = new AssignClubForm(coach);
                DialogResult   dr            = frmAssignClub.ShowDialog(this);

                if (dr == DialogResult.OK)
                {
                    lblCoachInfo.Text = coach.ToString();
                    RefreshData();
                }
            }
            else
            {
                lblCoachInfo.Text = "No coach selected.";
            }
        }