Пример #1
0
 /* ----------------------------------------------------------------- */
 ///
 /// PreviewViewModel
 ///
 /// <summary>
 /// Initializes a new instance of the PreviewViewModel
 /// with the specified argumetns.
 /// </summary>
 ///
 /// <param name="src">Image collection.</param>
 /// <param name="file">File information.</param>
 /// <param name="context">Synchronization context.</param>
 ///
 /* ----------------------------------------------------------------- */
 public PreviewViewModel(ImageCollection src,
                         Information file,
                         SynchronizationContext context
                         ) : base(() => GetTitle(src, file), new Aggregator(), context)
 {
     _model = new PreviewFacade(src, file, GetDispatcher(false));
 }
Пример #2
0
 /* ----------------------------------------------------------------- */
 ///
 /// PreviewViewModel
 ///
 /// <summary>
 /// Initializes a new instance of the PreviewViewModel
 /// with the specified argumetns.
 /// </summary>
 ///
 /// <param name="src">Image collection.</param>
 /// <param name="file">File information.</param>
 /// <param name="context">Synchronization context.</param>
 ///
 /* ----------------------------------------------------------------- */
 public PreviewViewModel(ImageCollection src, Information file, SynchronizationContext context) :
     base(() => GetTitle(src, file), new Messenger(), context)
 {
     Model = new PreviewFacade(src, file);
 }