UltimateZoneBuilder/Source/Core/Windows/PasteOptionsForm.cs

75 lines
1.6 KiB
C#
Raw Normal View History

2009-07-07 20:59:56 +00:00

#region ================== Copyright (c) 2007 Pascal vd Heiden
/*
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
* This program is released under GNU General Public License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#endregion
#region ================== Namespaces
using System;
using System.Windows.Forms;
using CodeImp.DoomBuilder.Config;
#endregion
namespace CodeImp.DoomBuilder.Windows
{
internal partial class PasteOptionsForm : DelayedForm
2009-07-07 20:59:56 +00:00
{
#region ================== Variables
private PasteOptions options;
2009-07-07 20:59:56 +00:00
#endregion
#region ================== Properties
public PasteOptions Options { get { return options; } }
#endregion
2009-07-07 20:59:56 +00:00
#region ================== Constructor
2009-07-07 20:59:56 +00:00
// Constructor
public PasteOptionsForm()
{
InitializeComponent();
// Get defaults
options = General.Settings.PasteOptions.Copy();
pasteoptions.Setup(options);
2009-07-07 20:59:56 +00:00
}
2009-07-07 20:59:56 +00:00
#endregion
2009-07-07 20:59:56 +00:00
#region ================== Events
// Paste clicked
private void paste_Click(object sender, EventArgs e)
{
options = pasteoptions.GetOptions();
this.DialogResult = DialogResult.OK;
this.Close();
}
// Cancel clicked
private void cancel_Click(object sender, EventArgs e)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
2009-07-07 20:59:56 +00:00
#endregion
}
}