private void InitProperties()
{
// only set property if file exists
// if we set now and download later, image will not set to skin
if (File.Exists(Fanart))
GUIUtils.SetProperty("#Trakt.Movie.FanartImageFilename", Fanart);
else
DownloadFanart();
// set credit type property
GUIUtils.SetProperty("#Trakt.Credit.Type", Type == CreditType.Cast ? Translation.Cast : Translation.Crew);
// Set current Movie properties
if (Movie != null)
GUICommon.SetMovieProperties(Movie);
// load last layout
CurrentLayout = (Layout)TraktSettings.CreditsMovieDefaultLayout;
// update button label
if (layoutButton != null)
GUIControl.SetControlLabel(GetID, layoutButton.GetID, GUICommon.GetLayoutTranslation(CurrentLayout));
}