Exemplo n.º 1
0
 private void GetBusinessReview()
 {
     if (searchDataGrid.SelectedIndex > -1)
     {
         Window newWindow = new GUISetup.WindowSetup("Review by Users",
                                                     query.GetBusinessReviews((Classes.Business)searchDataGrid.SelectedItem)).GetWindow();
         newWindow.Show();
     }
 }
Exemplo n.º 2
0
 private void GetCheckins()
 {
     if (searchDataGrid.SelectedIndex > -1)
     {
         var checkinList = new List <Classes.Checkins>();
         List <Classes.Checkins> newObject = query.GetBusinessCheckinDays((Classes.Business)searchDataGrid.SelectedItem);
         foreach (var checkinDay in newObject)
         {
             checkinList.Add(query.GetBusinessCheckins((Classes.Business)searchDataGrid.SelectedItem, checkinDay.checkin_day));
         }
         GUISetup.WindowSetup createChart = new GUISetup.WindowSetup("My New Chart", checkinList);
         Window newChartWindow            = createChart.GetWindow();
         newChartWindow.Show();
     }
 }
Exemplo n.º 3
0
 public void GetLogInBusinessCheckins()
 {
     if (businessLogInListBox.SelectedIndex > -1 && query.GetLoggedInBusiness() != null)
     {
         Classes.Business currLoginBusiness = query.GetLoggedInBusiness();
         var checkinList = new List <Classes.Checkins>();
         List <Classes.Checkins> newObject = query.GetBusinessCheckinDays(currLoginBusiness);
         foreach (var checkinDay in newObject)
         {
             checkinList.Add(query.GetBusinessCheckins(currLoginBusiness, checkinDay.checkin_day));
         }
         GUISetup.WindowSetup createChart = new GUISetup.WindowSetup("My New Chart", checkinList);
         Window newChartWindow            = createChart.GetWindow();
         newChartWindow.Show();
     }
 }