2
KeePass Password Safe - The Open-Source Password Manager
3
Copyright (C) 2003-2012 Dominik Reichl <dominik.reichl@t-online.de>
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
using System.Collections.Generic;
22
using System.ComponentModel;
25
using System.Windows.Forms;
26
using System.Diagnostics;
31
namespace KeePass.Forms
33
public partial class DuplicationForm : Form
35
private bool m_bAppendCopy = true;
36
public bool AppendCopyToTitles
38
get { return m_bAppendCopy; }
41
private bool m_bFieldRefs = false;
42
public bool ReplaceDataByFieldRefs
44
get { return m_bFieldRefs; }
47
public DuplicationForm()
49
InitializeComponent();
50
Program.Translation.ApplyTo(this);
53
private void OnFormLoad(object sender, EventArgs e)
55
GlobalWindowManager.AddWindow(this);
57
this.Icon = Properties.Resources.KeePass;
59
FontUtil.AssignDefaultBold(m_cbAppendCopy);
60
FontUtil.AssignDefaultBold(m_cbFieldRefs);
62
m_cbAppendCopy.Checked = m_bAppendCopy;
63
m_cbFieldRefs.Checked = m_bFieldRefs;
66
private void OnFormClosed(object sender, FormClosedEventArgs e)
68
GlobalWindowManager.RemoveWindow(this);
71
private void OnFieldRefsLinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
73
AppHelp.ShowHelp(AppDefs.HelpTopics.FieldRefs, null);
76
private void OnBtnOK(object sender, EventArgs e)
78
m_bAppendCopy = m_cbAppendCopy.Checked;
79
m_bFieldRefs = m_cbFieldRefs.Checked;