private void GetBusinessReview() { if (searchDataGrid.SelectedIndex > -1) { Window newWindow = new GUISetup.WindowSetup("Review by Users", query.GetBusinessReviews((Classes.Business)searchDataGrid.SelectedItem)).GetWindow(); newWindow.Show(); } }
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(); } }
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(); } }