KeePass.Forms.EntryListForm.GetSelectedEntry C# (CSharp) Method

GetSelectedEntry() private method

private GetSelectedEntry ( bool bSetDialogResult ) : bool
bSetDialogResult bool
return bool
        private bool GetSelectedEntry(bool bSetDialogResult)
        {
            ListView.SelectedListViewItemCollection slvic = m_lvEntries.SelectedItems;
            if(slvic.Count == 1)
            {
                m_peSelected = (slvic[0].Tag as PwEntry);

                if(bSetDialogResult) this.DialogResult = DialogResult.OK;
                return true;
            }

            return false;
        }