/// <summary> /// Constructor /// </summary> /// <param name="dataContextSource">ViewModelCreateUpdatePresentations</param> public ViewCreateUpdatePresentations(ViewModelCreateUpdatePresentations dataContextSource) { InitializeComponent(); this.DataContext = dataContextSource; this.DataContextViewModelCreateUpdatePresentations = dataContextSource; if (dataContextSource != null) { if (dataContextSource.SelectedPresentationOverviewInfo != null && dataContextSource.SelectedPresentationOverviewInfo.StatusType != StatusType.IN_PROGRESS) { HyperlinkButton pphyp = this.PPItemsControl.FindName("PowerPointHyperLink") as HyperlinkButton; pphyp.IsEnabled = false; } } }
/// <summary> /// Constructor /// </summary> /// <param name="dataContextSource"></param> public ViewCreateUpdatePresentations(ViewModelCreateUpdatePresentations dataContextSource) { InitializeComponent(); this.DataContext = dataContextSource; this.DataContextViewModelCreateUpdatePresentations = dataContextSource; }