Пример #1
0
        private void Grid_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            Grid grid = (Grid)sender;
            int  id   = Convert.ToInt32(grid.Name.Substring(3));

            for (int a = 0; a < Name.Count; a++)
            {
                if (Id[a] == id)
                {
                    EventClickGrid?.Invoke(new GridConcertHalls(Id[a], Name[a], Photo[a]));
                    EventClickGrid += MainWindow.EventClickGrid;
                }
            }
        }
Пример #2
0
        private void Grid_MouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
        {
            Grid grid = (Grid)sender;
            int  id   = Convert.ToInt32(grid.Name.Substring(3));

            for (int a = 0; a < Name.Count; a++)
            {
                if (Id[a] == id)
                {
                    EventClickGrid?.Invoke(new GridFilm(Id: Id[a], Name: Name[a], Description: DescriptionAndActors[a], Photo: Photo[a], Genre: Genre[a], Country: Country[a], Duration: Duration[a]));
                    EventClickGrid += MainWindow.EventClickGrid;
                }
            }
        }