void OpenMenu(MenuType type) { switch (type) { case MenuType.MostPopular: MovieSection.Close(); NewsSection.Close(); KidsSection.Close(); MostPopularBtn.MakeActive(); MoviesBtn.MakeDeActive(); GamesBtn.MakeDeActive(); EducationBtn.MakeDeActive(); KidsBtn.MakeDeActive(); MusicBtn.MakeDeActive(); NewsBtn.MakeDeActive(); MostPopularSection.Open(); break; case MenuType.Movies: MostPopularSection.Close(); NewsSection.Close(); KidsSection.Close(); MostPopularBtn.MakeDeActive(); MoviesBtn.MakeActive(); GamesBtn.MakeDeActive(); EducationBtn.MakeDeActive(); KidsBtn.MakeDeActive(); MusicBtn.MakeDeActive(); NewsBtn.MakeDeActive(); MovieSection.Open(); break; case MenuType.News: MostPopularSection.Close(); MovieSection.Close(); KidsSection.Close(); MostPopularBtn.MakeDeActive(); MoviesBtn.MakeDeActive(); GamesBtn.MakeDeActive(); EducationBtn.MakeDeActive(); KidsBtn.MakeDeActive(); MusicBtn.MakeDeActive(); NewsBtn.MakeActive(); NewsSection.Open(); break; case MenuType.Kids: MostPopularSection.Close(); MovieSection.Close(); NewsSection.Close(); MostPopularBtn.MakeDeActive(); MoviesBtn.MakeDeActive(); GamesBtn.MakeDeActive(); EducationBtn.MakeDeActive(); KidsBtn.MakeActive(); MusicBtn.MakeDeActive(); NewsBtn.MakeDeActive(); KidsSection.Open(); break; } }