private void NewPictures_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Hidden;
            NewPictures newPictures = new NewPictures(this);

            newPictures.Show();
        }
Exemplo n.º 2
0
        private void ViewPictures_Click(object sender, RoutedEventArgs e)
        {
            this.Visibility = Visibility.Hidden;
            int       batchNr = int.Parse(cbb_BatchNumber.SelectedItem.ToString());
            int       dayNr   = int.Parse(cbb_DayNumber.SelectedItem.ToString());
            BatchRepo chosen  = GetChosenBatch(batchNr, dayNr);

            chosen.AddPictureDataFromDayId(batchNr, dayNr);
            NewPictures newPictures = new NewPictures(this, chosen, batchNr, dayNr);

            newPictures.Show();
        }