KPFloatingPanel.MainForm.miItem_Edit C# (CSharp) Method

miItem_Edit() private method

private miItem_Edit ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        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();
        }