/// <summary>
        /// Execute ensures that parameter of the right type to get Story/ ImageReference Info
        /// </summary>
        /// <param name="parameter"></param>
        protected override void ExecuteInternal(object parameter)
        {
            // Image viewer expands on the data in StoryImageControl, needs that control as parameter
            StoryImageControl control = parameter as StoryImageControl;

            if (control != null)
            {
                // Have ViewManager open the window
                MsdnViewManager viewManager = this.ViewManager as MsdnViewManager;
                if (viewManager != null)
                {
                    viewManager.OpenImageViewerWindow(control);
                }
            }
        }
 public MsdnStartSyncCommand(MsdnViewManager viewManager) : base(viewManager)
 {
 }
 public OpenImageViewerCommand(MsdnViewManager viewManager) : base(viewManager)
 {
 }
Пример #4
0
 /// <summary>
 /// Initialize MSDN view manager
 /// </summary>
 protected override void OnInitializeViewManager()
 {
     ViewManagerInternal = new MsdnViewManager();
 }