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; }
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>(); }
public IndexModel() { this.photoControllerClient = new PhotoControllerClient(); this.Photos = new List <PhotoDTO>(); }