コード例 #1
0
        /// <summary>
        /// The execute.
        /// </summary>
        /// <param name="parameter">
        /// The parameter.
        /// </param>
        public void Execute(object parameter)
        {
            IOverlayPanel overlayPanel = parameter as IOverlayPanel;

            if (overlayPanel != null)
            {
                IShellViewModel shellViewModel = IoC.Get <IShellViewModel>();
                if (shellViewModel != null)
                {
                    shellViewModel.ShowOverlay(overlayPanel);
                }
            }
        }
コード例 #2
0
ファイル: ShellViewModel.cs プロジェクト: felizk/HandBrake
 /// <summary>
 /// The show overlay.
 /// </summary>
 /// <param name="panel">
 /// The panel.
 /// </param>
 public void ShowOverlay(IOverlayPanel panel)
 {
     this.OverlayPanelViewModel = panel;
     this.NotifyOfPropertyChange(() => this.OverlayPanelViewModel);
     this.ShowOverlayPanel = true;
 }
コード例 #3
0
ファイル: ShellViewModel.cs プロジェクト: michelav/HandBrake
 /// <summary>
 /// The show overlay.
 /// </summary>
 /// <param name="panel">
 /// The panel.
 /// </param>
 public void ShowOverlay(IOverlayPanel panel)
 {
     this.OverlayPanelViewModel = panel;
     this.NotifyOfPropertyChange(() => this.OverlayPanelViewModel);
     this.ShowOverlayPanel = true;
 }