summaryrefslogtreecommitdiffstats
path: root/win/C#/frmAddPreset.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2008-10-13 21:54:27 +0000
committersr55 <[email protected]>2008-10-13 21:54:27 +0000
commit18daea7ae350040ce3307d18e3cedcb9e9c5f5f2 (patch)
treea0053125d1c68da7d145e14807806a41c3879288 /win/C#/frmAddPreset.cs
parent7855971ef2d9be9d70ce063cabecc021f2ee79c8 (diff)
WinGui:
- Started to decouple this code a bit. Common.cs (now Main.cs) no longer relies on the frmMain window being passed into it. frmAddPreset no longer requires to access QueryGenerator.cs - QueryGenerator.cs, x264Panel.cs, PresetLoader.cs all moved into their own "frmMain" folder as that is the only place they should be used. - Rearranged the base of frmMain.cs a bit. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1830 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmAddPreset.cs')
-rw-r--r--win/C#/frmAddPreset.cs9
1 files changed, 4 insertions, 5 deletions
diff --git a/win/C#/frmAddPreset.cs b/win/C#/frmAddPreset.cs
index c2f754ffe..bc2743771 100644
--- a/win/C#/frmAddPreset.cs
+++ b/win/C#/frmAddPreset.cs
@@ -17,21 +17,20 @@ namespace Handbrake
{
public partial class frmAddPreset : Form
{
- Functions.QueryGenerator queryGen = new Functions.QueryGenerator();
private frmMain frmMainWindow;
Functions.Presets presetCode;
-
- public frmAddPreset(frmMain fmw, Functions.Presets presetHandler)
+ private string query = "";
+
+ public frmAddPreset(frmMain fmw, string query_string, Functions.Presets presetHandler)
{
InitializeComponent();
frmMainWindow = fmw;
presetCode = presetHandler;
+ this.query = query_string;
}
private void btn_add_Click(object sender, EventArgs e)
{
- String query = queryGen.generateTabbedComponentsQuery(frmMainWindow);
-
if (presetCode.addPreset(txt_preset_name.Text.Trim(), query) == true)
{
frmMainWindow.loadPresetPanel();