private void OnFormLoad(object sender, EventArgs e)
{
Debug.Assert(m_strTitle.Length > 0);
Debug.Assert(m_imgIcon != null);
Debug.Assert(m_ilIcons != null);
GlobalWindowManager.AddWindow(this);
BannerFactory.CreateBannerEx(this, m_bannerImage,
m_imgIcon, m_strTitle, m_strDescShort);
m_lblText.Text = m_strDescLong;
this.Text = m_strTitle;
this.Icon = Properties.Resources.KeePass;
if(m_ilIcons != null) m_lvEntries.SmallImageList = m_ilIcons;
else m_ilIcons = new ImageList();
List<KeyValuePair<string, string>> vColumns =
new List<KeyValuePair<string, string>>();
vColumns.Add(new KeyValuePair<string, string>(PwDefs.TitleField, KPRes.Title));
vColumns.Add(new KeyValuePair<string, string>(PwDefs.UserNameField, KPRes.UserName));
vColumns.Add(new KeyValuePair<string, string>(PwDefs.UrlField, KPRes.Url));
UIUtil.CreateEntryList(m_lvEntries, m_vEntries, vColumns, m_ilIcons);
ProcessResize();
if(m_bEnsureForeground)
{
this.BringToFront();
this.Activate();
}
EnableControlsEx();
}