diff options
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index 229c25516..61efc879c 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -437,6 +437,12 @@ namespace Handbrake ImportPreset();
}
+ private void mnu_exportMacPreset_Click(object sender, EventArgs e)
+ {
+ ExportPreset();
+ }
+
+
private void btn_new_preset_Click(object sender, EventArgs e)
{
Form preset = new frmAddPreset(this, QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null),
@@ -739,6 +745,21 @@ namespace Handbrake }
}
+ private void ExportPreset()
+ {
+ MessageBox.Show("This feature has not been implimented yet.", "Not Implimented", MessageBoxButtons.OK, MessageBoxIcon.Warning);
+ return;
+
+ SaveFileDialog savefiledialog = new SaveFileDialog();
+ savefiledialog.Filter = "plist|*.plist";
+
+ if (savefiledialog.ShowDialog() == DialogResult.OK)
+ {
+ QueryParser parsed = QueryParser.Parse(QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null));
+ PlistPresetHandler.Export(savefiledialog.FileName, parsed);
+ }
+ }
+
#endregion
#region ToolStrip
|