private void assignVideoMenuItem_Click(object sender, RoutedEventArgs e) { AssignVideoDialog videoDialog = new AssignVideoDialog(); videoDialog.Closed += new EventHandler(videoDialog_Closed); videoDialog.Show(); }
private void videoDialog_Closed(object sender, EventArgs e) { AssignVideoDialog videoDialog = sender as AssignVideoDialog; if (videoDialog.DialogResult.Value) { RelatedContentPanelUtil.Instance.LoadRelatedVideoContent(videoDialog.Source, VideoSize.Small); string source = videoDialog.Source; Command setSourceCommand = new Command(); setSourceCommand.Name = "Play"; setSourceCommand.Params = new List <Param>(); setSourceCommand.Params.Add(new Param() { Name = "Source", Value = source }); setSourceCommand.Params.Add(new Param() { Name = "StartTimeCode", Value = "00:00:00" }); //Utilities.SendMessage<Command>(MessageSender, setSourceCommand); } }