예제 #1
0
        // This event is called when Enter is hit
        private void buttonOkay_Click(object sender, EventArgs e)
        {
            HideOverlay();

            // Type out just the password.
            // TODO: Allow customization of what we do?
            PasswordEntry pe = comboBoxSearch.SelectedItem as PasswordEntry;

            if (pe != null)
            {
                String Sequence = "{PASSWORD}";
                KeePass.Util.AutoType.PerformIntoCurrentWindow(pe.GetEntry(), m_host.Database, Sequence);
            }
        }
예제 #2
0
        private void PopulateSearchResults(PwObjectList <PwEntry> resultList)
        {
            // Clear the current list of passwords
            comboBoxSearch.Items.Clear();

            // Add a blank entry
            PasswordEntry peBlank = new PasswordEntry("", null);

            comboBoxSearch.Items.Add(peBlank);

            // Add all of our passwords
            foreach (PwEntry Entry in resultList)
            {
                string sDescription = Entry.Strings.ReadSafe(PwDefs.TitleField);

                PasswordEntry pe = new PasswordEntry(sDescription, Entry);

                comboBoxSearch.Items.Add(pe);
            }

            comboBoxSearch.SelectedIndex = 0;
        }