Ejemplo n.º 1
0
        protected PreviewHandler()
        {
            Debug.WriteLine(string.Format("PreviewHandler() {0}", DateTime.Now));

            _previewControl = CreatePreviewHandlerControl(); // NOTE: shouldn't call virtual function from constructor; see article for more information
            IntPtr forceCreation = _previewControl.Handle;

            _previewControl.BackColor = SystemColors.Window;
        }
 protected override void Load(PreviewHandlerControl c)
 {
     c.Load(new FileInfo(_filePath));
 }
 protected override void Load(PreviewHandlerControl c)
 {
     c.Load(new ReadOnlyIStreamStream(_stream));
 }
Ejemplo n.º 4
0
 protected abstract void Load(PreviewHandlerControl c);