private async void StartUpTopRated() { mainPage_WhatsPopularPanel1.BackColor = Color.FromArgb(53, 53, 55); mainPage_WhatsPopularPanel1.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, mainPage_WhatsPopularPanel2.Width, mainPage_WhatsPopularPanel2.Height, 30, 30)); var gg = (await ServiceContainer.CustomServiceContainer.GetService <MovieService>().GetPopularMoviesPagenationAsync()).ToList(); gg.Select(x => { mainPage_WhatsPopularPanel1.AddMovieCard(x); return(x); }).ToList(); }
private async void StartUpTrending() { mainPage_WhatsPopularPanel2.BackColor = Color.FromArgb(14, 195, 201); mainPage_WhatsPopularPanel2.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, mainPage_WhatsPopularPanel2.Width, mainPage_WhatsPopularPanel2.Height, 30, 30)); mainPage_WhatsPopularPanel2.SetHeadlineText("Trending"); var cc = (await ServiceContainer.CustomServiceContainer.GetService <MovieService>().GetTrendingMoviesAsync("week")).ToList(); cc.Select(x => { mainPage_WhatsPopularPanel2.AddMovieCard(x); return(x); }).ToList(); }
public MainPage_WhatsPopularPanel() { InitializeComponent(); button1.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, button1.Width, button1.Height, 40, 40)); button2.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, button2.Width, button2.Height, 40, 40)); ActivateButton(button1); DeactivateButton(button2); button1.Visible = false; button2.Visible = false; }
public ActorCard() { InitializeComponent(); pictureBox1.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, pictureBox1.Width, pictureBox1.Height, 20, 20)); }
public MovieDetailsPage() { InitializeComponent(); pictureBox1.Region = Region.FromHrgn(Roundანგლეს.CreateRoundRectRgn(0, 0, pictureBox1.Width, pictureBox1.Height, 30, 30)); }