Ejemplo n.º 1
0
 private void ResetAllObjects()
 {
     photos                = new List <Photo>();
     addPerson.Visible     = false;
     persons               = new List <Person>();
     imagesList            = new List <string>();
     photoControllerClient = new PhotoControllerClient();
     events                = new List <Event>();
     persons               = photoControllerClient.GetAllPersons().ToList();
     events                = photoControllerClient.GetAllEvents().ToList();
     newPersons            = new List <Person>();
     newEvents             = new List <Event>();
     places                = photoControllerClient.GetAllPlaces().ToList();
     newPlaces             = new List <Place>();
     landscapes            = photoControllerClient.GetAllLandscapes().ToList();
     newLandscapes         = new List <Landscape>();
     currentIndex          = 0;
     searchedPhotos        = new List <Photo>();
     emailButton.Visible   = false;
     printButton.Visible   = false;
 }
Ejemplo n.º 2
0
        public MainForm()
        {
            photos = new List <Photo>();
            InitializeComponent();
            addPerson.Visible     = false;
            persons               = new List <Person>();
            imagesList            = new List <string>();
            events                = new List <Event>();
            photoControllerClient = new PhotoControllerClient("BasicHttpBinding_IPhoto");
            var x = photoControllerClient.GetAllPersons();

            Console.WriteLine("aaaaaaaaaaaaaaaaaaaaaaa");
            persons        = photoControllerClient.GetAllPersons().ToList();
            events         = photoControllerClient.GetAllEvents().ToList();
            newPersons     = new List <Person>();
            newEvents      = new List <Event>();
            places         = photoControllerClient.GetAllPlaces().ToList();
            newPlaces      = new List <Place>();
            landscapes     = photoControllerClient.GetAllLandscapes().ToList();
            newLandscapes  = new List <Landscape>();
            searchedPhotos = new List <Photo>();
        }
Ejemplo n.º 3
0
 public IndexModel()
 {
     this.photoControllerClient = new PhotoControllerClient();
     this.Photos = new List <PhotoDTO>();
 }