Inheritance: System.Windows.Controls.ChildWindow
Esempio n. 1
0
        private void assignVideoMenuItem_Click(object sender, RoutedEventArgs e)
        {
            AssignVideoDialog videoDialog = new AssignVideoDialog();

            videoDialog.Closed += new EventHandler(videoDialog_Closed);
            videoDialog.Show();
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 private void assignVideoMenuItem_Click(object sender, RoutedEventArgs e)
 {
     AssignVideoDialog videoDialog = new AssignVideoDialog();
     videoDialog.Closed += new EventHandler(videoDialog_Closed);
     videoDialog.Show();
 }