public virtual void DisplayItem(object itemIn) { item = (CryptoEditorBookmarkItem)itemIn; // Clear fields title.Clear(); url.Clear(); note.Clear(); BringToFront(); if (item == null) { this.Enabled = false; return; } this.Enabled = true; // Fill in fields ... title.Text = item.Title; url.Text = item.Url; note.Text = item.Note; loadButton.Visible = true; webBrowser.Navigate("about:blank"); }
public CryptoEditorBookmarkForm(CryptoEditorBookmarkItem item) { InitializeComponent(); this.item = item; title.Text = item.Title; note.Text = item.Note; url.Text = item.Url; }