private void LoadNewPicturesRepo(NewPicturesRepo pictureRepo)
 {
     for (int i = 0; i < pictureRepo.Count; i++)
     {
         RadioButton radioBtn = new RadioButton
         {
             Margin = new Thickness(2, 10, 2, 10),
             Height = 100,
             HorizontalAlignment = HorizontalAlignment.Center,
             VerticalAlignment   = VerticalAlignment.Top,
             Content             = new Image {
                 Source = new BitmapImage(new Uri(pictureRepo.GetPictureLinkByIndex(i), UriKind.Relative))
             },
             Name = "_" + pictureRepo.GetPictureIdByIndex(i)
         };
         radioBtn.Checked += this.Radio_Checked;
         WP_mainWrapPanel.Children.Add(radioBtn);
     }
 }
Exemplo n.º 2
0
        public void NewPicturesRepo_Can_Add_Item()
        {
            NewPicturesRepo newPictures = new NewPicturesRepo();

            newPictures.AddItem(new Picture(1, new DateTime(2019, 01, 01), "God", PictureStatus.SomeGrowth, @"c:\2019-01-01 24:24:24.png", 1));
        }
Exemplo n.º 3
0
 public void NewPicturesRepo_Constructor()
 {
     NewPicturesRepo newPictures = new NewPicturesRepo();
 }