Ejemplo n.º 1
0
        private void ButtonPlaySound_Click(object sender, RoutedEventArgs e)
        {
            DWindow_MediaSelector mediaSelector = new DWindow_MediaSelector();

            mediaSelector.Owner = Window.GetWindow(this);
            mediaSelector.ShowDialog();

            if (mediaSelector.OK)
            {
                L_SoundPlay.Content = mediaSelector.FileName;
            }
        }
Ejemplo n.º 2
0
        private void SetMedia_Click(object sender, RoutedEventArgs e)
        {
            DWindow_MediaSelector mediaSelector = new DWindow_MediaSelector();

            mediaSelector.Owner = Window.GetWindow(this);
            mediaSelector.ShowDialog();

            if (mediaSelector.OK)
            {
                cont.Tag       = mediaSelector.FileName;
                TBL_Media.Text = mediaSelector.FileName;
            }
        }
Ejemplo n.º 3
0
        private void ButtonPlaySound_Click(object sender, RoutedEventArgs e)
        {
            DWindow_MediaSelector mediaSelector = new DWindow_MediaSelector();

            mediaSelector.Owner = Window.GetWindow(this);
            mediaSelector.ShowDialog();

            if (mediaSelector.OK)
            {
                L_SoundPlay.Content = mediaSelector.FileName;
                data.pages[selpos].soundActionType = Class.Enumerators.SoundAction.SoundActionType.Play;
                RB_Play.IsChecked = true;
                data.pages[selpos].PathToPlaySound = mediaSelector.FileName;
            }
        }