Example #1
0
        private void CheckEvent(object sender, MouseButtonEventArgs e)
        {
            Grid  grid  = (Grid)sender;
            Color color = (Color)ColorConverter.ConvertFromString("#FFF58E78");

            grid.Background = new SolidColorBrush(color);
            Label valueLabel = grid.Children.OfType <Label>().FirstOrDefault();

            Cursor previousCursor = Mouse.OverrideCursor;

            Mouse.OverrideCursor = Cursors.Wait;
            try
            {
                Event           evnt = EventOperations.GetEventById(int.Parse(valueLabel.Content.ToString()));
                EventStatistics page = new EventStatistics(evnt);
                NavigationService.Navigate(page);
            }
            catch { }
            Mouse.OverrideCursor = previousCursor;
        }
Example #2
0
 public static EventDto GetEventById(int?id)
 {
     return(eventOperations.GetEventById(id));
 }