/// <summary> /// Class XtrmAddons Fotootof Layouts Windows Constructor. /// </summary> /// <param name="collection">A <see cref="PictureEntityCollection"/>.</param> /// <param name="picture">A <see cref="PictureEntity"/>.</param> public WindowSlideshowLayout(PictureEntityCollection collection, PictureEntity picture) { Theme.ThemeLoader.MergeThemeTo(Resources); InitializeComponent(); Model = new WindowSlideshowModel(this) { Pictures = collection, CurrentPicture = picture, CurrentIndex = collection.IndexOf(picture) }; }
/// <summary> /// Class XtrmAddons Fotootof Component ServerSide View Slideshow Constructor. /// </summary> /// <param name="collection">A pictures entities Collection.</param> /// <param name="picture"></param> public PageSlideshowLayout(PictureEntityCollection collection, PictureEntity picture = null) { MessageBoxs.IsBusy = true; log.Info(string.Format(CultureInfo.CurrentCulture, Properties.Logs.InitializingPageWaiting, "Slideshow")); pictures = collection; currentPicture = picture; // Constuct page component. InitializeComponent(); AfterInitializedComponent(); log.Info(string.Format(CultureInfo.CurrentCulture, Properties.Logs.InitializingPageDone, "Slideshow")); MessageBoxs.IsBusy = false; }