private void miItem_Edit(object sender, EventArgs e)
{
ToolStripMenuItem Item = (ToolStripMenuItem)sender;
PwEntry Entry = (PwEntry)Item.Tag;
PwEntryForm myForm = new PwEntryForm();
myForm.InitEx(Entry, PwEditMode.EditExistingEntry, Host.MainWindow.DocumentManager.ActiveDatabase, Host.MainWindow.ClientIcons, false, true);
if ((myForm.ShowDialog() == DialogResult.OK))
Host.MainWindow.UpdateUI(false, null, Host.MainWindow.DocumentManager.ActiveDatabase.UINeedsIconUpdate, null, true, null, true);
Host.MainWindow.RefreshEntriesList();
}