상속: System.Windows.Controls.ChildWindow
예제 #1
0
        private void assignVideoMenuItem_Click(object sender, RoutedEventArgs e)
        {
            AssignVideoDialog videoDialog = new AssignVideoDialog();

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