コード例 #1
0
ファイル: HelpDialog.cs プロジェクト: tvad911/YoutubeDLGUI
 /// <summary>
 /// Raises the button click event.
 /// </summary>
 /// <param name="sender">The parameter is not used.</param>
 /// <param name="e">The parameter is not used.</param>
 protected void OnButtonOkClicked(object sender, EventArgs e)
 {
     ConfigurationHelper.AddUpdateAppSettings(ConfigurationHelper.FirstRun, "false");
     this.Destroy();
 }
コード例 #2
0
 /// <summary>
 /// Raises the text buffer changed event.
 /// </summary>
 /// <param name="sender">The parameter is not used.</param>
 /// <param name="e">The parameter is not used.</param>
 private void OnDestFolderTextViewBufferChanged(object sender, EventArgs e)
 {
     this.youtubeController.Output = this.destinationFolderTextView.Buffer.Text;
     ConfigurationHelper.AddUpdateAppSettings(ConfigurationHelper.DestinationFolder, this.destinationFolderTextView.Buffer.Text);
 }
コード例 #3
0
        /// <summary>
        /// Raises the use embedded binary toggled event.
        /// </summary>
        /// <param name="sender">The parameter is not used.</param>
        /// <param name="e">The parameter is not used.</param>
        private void OnEnableEmbeddedYoutubeDlActionToggled(object sender, EventArgs e)
        {
            this.youtubeController.UseEmbeddedBinary = ((ToggleAction)sender).Active;

            ConfigurationHelper.AddUpdateAppSettings(ConfigurationHelper.EnableEmbeddedBinary, ((ToggleAction)sender).Active.ToString());
        }
コード例 #4
0
 /// <summary>
 /// Raises the action toggled event.
 /// </summary>
 /// <param name="sender">The action.</param>
 /// <param name="e">The parameter is not used.</param>
 protected void OnEnableVerboseOutputActionToggled(object sender, EventArgs e)
 {
     this.youtubeController.Verbose = ((ToggleAction)sender).Active;
     ConfigurationHelper.AddUpdateAppSettings(ConfigurationHelper.EnableVerboseOutput, ((ToggleAction)sender).Active.ToString());
 }