/// <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(); }
/// <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); }
/// <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()); }
/// <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()); }