private void mnuClear_Click(object sender, EventArgs e) { //var item = (MenuItem)sender; //var database = (DatabaseInfo)item.Tag; _database.ClearPassword(); _database.SaveDetails(); //var listItem = _items.First(x => x.Info == database); //listItem.HasPassword = false; //listItem.PasswordIcon = null; }