InitEx() публичный Метод

Initialize the form. Must be called before the dialog is displayed.
public InitEx ( KeePassLib.PwDatabase pdContext, PwGroup pwRoot ) : void
pdContext KeePassLib.PwDatabase
pwRoot PwGroup Data source group. This group will be searched.
Результат void
Пример #1
0
        private void OnGroupsFind(object sender, EventArgs e)
        {
            PwGroup pg = GetSelectedGroup();
            Debug.Assert(pg != null); if(pg == null) return;

            SearchForm sf = new SearchForm();
            sf.InitEx(m_docMgr.ActiveDatabase, pg);

            if(sf.ShowDialog() == DialogResult.OK)
            {
                PwGroup pgResults = sf.SearchResultsGroup;
                UpdateEntryList(pgResults, false);
                UpdateUIState(false);
                ShowSearchResultsStatusMessage();
            }
            UIUtil.DestroyForm(sf);
        }
Пример #2
0
        private void OnPwListFind(object sender, EventArgs e)
        {
            SearchForm sf = new SearchForm();

            sf.InitEx(m_docMgr.ActiveDatabase, m_docMgr.ActiveDatabase.RootGroup);
            if(sf.ShowDialog() == DialogResult.OK)
            {
                PwGroup pg = sf.SearchResultsGroup;

                UpdateEntryList(pg, false);
                SelectFirstEntryIfNoneSelected();

                UpdateUIState(false);
                ShowSearchResultsStatusMessage();

                ResetDefaultFocus(m_lvEntries);
            }
            UIUtil.DestroyForm(sf);
        }
Пример #3
0
        private void OnPwListFind(object sender, EventArgs e)
        {
            PwDatabase pd = m_docMgr.ActiveDatabase;
            if(!pd.IsOpen) return;
            PwGroup pgRoot = pd.RootGroup;
            if(pgRoot == null) { Debug.Assert(false); return; }

            SearchForm sf = new SearchForm();
            sf.InitEx(pd, pgRoot);

            if(sf.ShowDialog() == DialogResult.OK)
            {
                PwGroup pg = sf.SearchResultsGroup;

                UpdateEntryList(pg, false);
                SelectFirstEntryIfNoneSelected();

                UpdateUIState(false);
                ShowSearchResultsStatusMessage(pgRoot);

                ResetDefaultFocus(m_lvEntries);
            }
            UIUtil.DestroyForm(sf);
        }