private void showPasswordsClick(object sender, EventArgs e)
 {
     foreach (var item in this.listView.Items)
     {
         PwEntryListViewItem pwEntryItem = item as PwEntryListViewItem;
         if (pwEntryItem != null)
         {
             pwEntryItem.UpdatePassword(this.showPasswordIsChecked());
         }
         ;
     }
 }
 public void batchPasswordChangerWorkerChanged(object sender, BatchPasswordChangerEventArgs e)
 {
     Debug.WriteLine("batchPasswordChangerWorkerChanged");
     this.Invoke((MethodInvoker) delegate {
         foreach (var item in this.listView.Items)
         {
             PwEntryListViewItem pwEntryItem = item as PwEntryListViewItem;
             if (pwEntryItem != null && e.HostPwEntry.Equals(pwEntryItem.PwEntry))
             {
                 pwEntryItem.UpdatePassword(this.showPasswordIsChecked());
                 pwEntryItem.Checked = false;
                 this.log(String.Format("Password successfully changed for {0} on host {1}.", e.HostPwEntry.GetUsername(), e.HostPwEntry.IPAddress), true);
                 this.progressBar.Value = e.ProcessedEntries;
             }
             ;
         }
     });
 }