Beispiel #1
0
        /* ----------------------------------------------------------------- */
        ///
        /// PreviewFacade
        ///
        /// <summary>
        /// Initializes a new instance of the PreviewFacade class
        /// with the specified arguments.
        /// </summary>
        ///
        /// <param name="src">Source images.</param>
        /// <param name="file">Target file information.</param>
        /// <param name="dispatcher">Dispatcher object.</param>
        ///
        /* ----------------------------------------------------------------- */
        public PreviewFacade(ImageCollection src, Information file, IDispatcher dispatcher)
        {
            var index = src.Selection.First;

            Images   = src;
            Bindable = new PreviewBindable(file, src[index].RawObject, dispatcher);

            Task.Run(() => Setup(index)).Forget();
        }
Beispiel #2
0
 /* ----------------------------------------------------------------- */
 ///
 /// PreviewFacade
 ///
 /// <summary>
 /// Initializes a new instance of the PreviewFacade class
 /// with the specified arguments.
 /// </summary>
 ///
 /// <param name="src">Source images.</param>
 /// <param name="file">Target file information.</param>
 /// <param name="invoker">Invoker object.</param>
 ///
 /* ----------------------------------------------------------------- */
 public PreviewFacade(ImageCollection src, Entity file, Invoker invoker)
 {
     Value = new PreviewBindable(src, file, invoker);
     Task.Run(() => Setup(src.Selection.First)).Forget();
 }