Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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());
         }
     }
 }