diff options
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index c35c2fa51..e490c2e63 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -1,5 +1,4 @@ using System;
-using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using Handbrake.Parsing;
@@ -24,6 +23,8 @@ namespace Handbrake.Controls private Boolean looseAnamorphicHeightGuard;
private Boolean heightModJumpGaurd;
+ public event EventHandler PictureSettingsChanged;
+
// Window Setup
public PictureSettings()
{
@@ -112,7 +113,9 @@ namespace Handbrake.Controls customAnamorphic(text_width);
break;
}
-
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
private void text_height_ValueChanged(object sender, EventArgs e)
{
@@ -160,6 +163,10 @@ namespace Handbrake.Controls heightChangeGuard = false;
looseAnamorphicHeightGuard = false;
heightModJumpGaurd = false;
+
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
private void check_KeepAR_CheckedChanged(object sender, EventArgs e)
{
@@ -254,6 +261,10 @@ namespace Handbrake.Controls break;
}
+
+ // A Picture Setting has changed so raise a PictureSettingsChanged event.
+ if (this.PictureSettingsChanged != null)
+ this.PictureSettingsChanged(this, new EventArgs());
}
// Custom Anamorphic Controls
|