private void BusinessLogInViewPhotoButton_Click(object sender, RoutedEventArgs e) { if (businessLogInListBox.SelectedIndex > -1) { var imagePaths = query.GetPhotoPaths(businessLogInListBox.SelectedItem.ToString()); GUISetup.PhotoSetup photoWindow = new GUISetup.PhotoSetup(imagePaths); photoWindow.LoadImages(); } }
private void ViewPhotoButton_Click(object sender, RoutedEventArgs e) { if (searchDataGrid.SelectedIndex > -1) { var imagePaths = query.GetPhotoPaths(((Classes.Business)searchDataGrid.SelectedItem).business_id); GUISetup.PhotoSetup photoWindow = new GUISetup.PhotoSetup(imagePaths); photoWindow.LoadImages(); } }
private void BusinessLogInAddPhotoButton_Click(object sender, RoutedEventArgs e) { if (businessLogInListBox.SelectedIndex > -1) { GUISetup.PhotoSetup newPhoto = new GUISetup.PhotoSetup(); var path = newPhoto.AddImage(); if (!path.Equals("")) { query.AddPhotoPath(path, businessLogInListBox.SelectedItem.ToString()); } } }