コード例 #1
0
        private void EditStagesParticipations_Click(object sender, EventArgs e)
        {
            if (stagesParticipationsList.FocusedItem != null)
            {
                // Get primary keys
                ListViewItem firstSelectedItem  = stagesParticipationsList.FocusedItem;
                int          participantID      = Convert.ToInt32(firstSelectedItem.SubItems[0].Text);
                DateTime     stageDate          = Convert.ToDateTime(firstSelectedItem.SubItems[3].Text);
                string       stageStartLocation = firstSelectedItem.SubItems[4].Text;
                string       stageEndLocation   = firstSelectedItem.SubItems[5].Text;

                StageParticipation         S      = DBLayer.StagesParticipation.Read(participantID, E.Number, stageDate, stageStartLocation, stageEndLocation);
                DialogStagesParticipations dialog = new DialogStagesParticipations(E, S);
                dialog.Show();
            }
        }
コード例 #2
0
        private void AddStagesParticipations_Click(object sender, EventArgs e)
        {
            DialogStagesParticipations dialog = new DialogStagesParticipations(E);

            dialog.Show();
        }