/// <summary> /// Handles the Load event of the FormShaderException control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param> private void FormShaderException_Load(object sender, EventArgs e) { this.LoadLayout(); FontSize = (float)Convert.ToDouble(RegistryLoader.LoadValue(Name, "fontSize", 12.0f)); }
/// <summary> /// Handles the FormClosing event of the FormShaderException control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="FormClosingEventArgs"/> instance containing the event data.</param> private void FormShaderException_FormClosing(object sender, FormClosingEventArgs e) { this.SaveLayout(); RegistryLoader.SaveValue(Name, "fontSize", FontSize); }