Example #1
0
        private void PhotographyMemberButton_Click(object sender, RoutedEventArgs e)
        {
            MemberServices sr = new MemberServices();

            MembersListGrid.ItemsSource = sr.PhotographerData("Photographer", "photographer");
            MemberIdTextBox.Text        = "";
            MemberNameTextBox.Text      = "";
        }
Example #2
0
        private void continueButton_Click(object sender, RoutedEventArgs e)
        {
            EventPhotography photography = new EventPhotography();

            EventCalculation.date             = Convert.ToDateTime(eventDateTextBox.Text);
            EventCalculation.eventDate        = Convert.ToString(eventDateTextBox.Text);
            EventCalculation.eventStartTime   = Convert.ToString(eventStartTimeTextBox.Text);
            photography.startTimeTextBox.Text = eventStartTimeTextBox.Text;
            Close();
            MemberServices ms = new MemberServices();

            photography.photographersDataGrid.ItemsSource = ms.PhotographerData("Photographer", "photographer");
            photography.ShowDialog();
        }