Esempio n. 1
0
        private void btnPlayerArgs_Click(object sender, RoutedEventArgs e)
        {
            var mediaPlayer = lstExternalPlayers.SelectedItem as ConfigData.ExternalPlayer;

            if (mediaPlayer != null)
            {
                var form = new PlayerArgsForm(mediaPlayer.Args);
                form.Owner = this;
                form.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                if (form.ShowDialog() == true)
                {
                    mediaPlayer.Args   = form.txtArgs.Text;
                    lblPlayerArgs.Text = mediaPlayer.Args;
                    SaveConfig();
                }
            }
        }
Esempio n. 2
0
 private void btnPlayerArgs_Click(object sender, RoutedEventArgs e)
 {
     var mediaPlayer = lstExternalPlayers.SelectedItem as ConfigData.ExternalPlayer;
     if (mediaPlayer != null)
     {
         var form = new PlayerArgsForm(mediaPlayer.Args);
         form.Owner = this;
         form.WindowStartupLocation = WindowStartupLocation.CenterOwner;
         if (form.ShowDialog() == true)
         {
             mediaPlayer.Args = form.txtArgs.Text;
             lblPlayerArgs.Text = mediaPlayer.Args;
             SaveConfig();
         }
     }
 }