public GridConcerts(int Id, string Name, string Genre, string Description, byte[] Photo, string a = null) { InitializeComponent(); this.a = a; ConcertName.Content = Name; this.Genre.Content = Genre; if (File.Exists(Description)) { ActorsAndDescriptions.Text = File.ReadAllText(Description); } else { ActorsAndDescriptions.Text = "Missing description file"; } BitmapImage image = new BitmapImage(); image.BeginInit(); image.StreamSource = new MemoryStream(Photo); image.EndInit(); FilmImage.Source = image; get.GetAllConcertHallsByIdConcert(Id, User.Date, NameC, AddressC, PhotoC, PriceC, FreeSpaces, ReservedSpaces, IdC); }